您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes file:/// directory ("Index of...") pages (and many server-generated index pages) actually useful. Adds sidebar and preview pane, keyboard navigation, audio and video player, markdown/plain text preview and editing, image and font previews and grid views, sorting, user-defined shortcuts, more.
当前为
VERSION 3.2.5 APOLOGIES: Script was not working because jQuery was not included in the @require list. Version 4.0.0, with many new features and improvements, will be coming soon.
VERSION 3.2.4 More Markdown goodness
ADDED: Multimarkdown table syntax (https://github.com/RedBug312/markdown-it-multimd-table)
ADDED: Markdown ->
centered text<-
(https://github.com/jay-hodgson/markdown-it-center-text)
ADDED: Markdown definition lists (https://github.com/markdown-it/markdown-it-deflist; for syntax, see http://pandoc.org/MANUAL.html#definition-lists)
ADDED: Github Markdown styles for preview (https://github.com/sindresorhus/github-markdown-css), with a few customizations.
IMPROVED: Allow checkboxes in definition lists (in both term and details).
FIXED: Various issues with checkboxes and live updating.
FIXED: Allow empty text files to be edited.
FIXED: Markdown preview: Clicking up arrow on hovered header will scroll to TOC inserted with ${toc}
(if present) or to top of previewed text (wasn't working before).
FIXED: Some long-standing bugs with image grid display.
FIXED: A long-standing bug with clicking left and right arrows in preview pane; only images and fonts should be selected.
OTHER: Improved documentation.
VERSION 3.2.3 Markdown extensions
ADDED: Markdown TOC ( ${toc}
) (https://github.com/nagaozen/markdown-it-toc-done-right).
ADDED: Markdown footnotes (https://github.com/markdown-it/markdown-it-footnote).
ADDED: Markdown subscript ( ~sub~
) (https://github.com/markdown-it/markdown-it-sub).
ADDED: Markdown superscript ( ^sup^
) (https://github.com/markdown-it/markdown-it-sup).
IMPROVED: Markdown: added basic HTML head and body elements on saving rendered text.
IMPROVED: Markdown: made sync-scrolling proportional.
IMPROVED: Markdown table styling.
OTHER: Added 'opus' to the default list of supported audio formats.
VERSION 3.2.2 More bug fixes. FIXED: Source text was being interpreted as HTML. FIXED: Checkboxes added to markdown weren't "live." IMPROVED: Live preview update on input. IMPROVED: Nested blockquote styling.
VERSION 3.2.1 FIXED: A bad bug with saving source text. IMPROVED: Made text split-view resizable. IMPROVED: Various UI tweaks for text editing.
VERSION 3.2.0
NEW!: Preview, edit, and save Markdown and plain-text files. (Now how much would you pay? Or donate? :-)
• Basic Markdown syntax is rendered via markdownit.js.
• View editable source text or rendered HTML preview, or both in split pane (with optional sync scroll).
• Live preview of source edits in split-pane view.
• Render Checkboxes/Checklists with [x]
and [ ]
, with live updating of source text.
• Save edited source text or rendered HTML.
• More to come.
• Caveat: You must manually save your work if you want to keep it; autosave is not possible.
Moreover, because of security concerns with local files, the editing iframe cannot communicate with the parent index page, or vice versa.
* It is therefore entirely possible to navigate away from the page and LOSE YOUR WORK. *
To help prevent loss of work, the script will attempt to warn you when the editing pane loses focus (if you have made any edits), e.g., when you click in the script sidebar or in the browser UI, or when the browser tab/window or the browser itself loses focus. But note that if the editing pane is already unfocused, the warning will not be issued.
• ADDED: New user settings: set default view for markdown/text files: source or preview, or split pane view. See user settings for details.
• IMPROVED: Plain text and code file type detection.
• CHANGED: Treat files without extensions as text (code) files. (Extension-less binary files will still initiate a download.)
• FIXED: Malformed URI error if file name included "%".
• FIXED: Some issues with image zoom.
• FIXED: An issue with content pane sizing.
• FIXED: An issue with parent directory navigation.
ABOUT This script transforms the default local directory page (and many server-generated index pages) into a full-featured file browser, with a resizable sidebar and preview pane. (See screenshots below.)
If you like this script, please consider making a donation to encourage development. Thanks!
FEATURES INCLUDE:
${toc}
) ( https://github.com/nagaozen/markdown-it-toc-done-right )\[ ], [x]
), allowed in lists and deflists.^sup^
) ( https://github.com/markdown-it/markdown-it-sup )~sub~
) ( https://github.com/markdown-it/markdown-it-sub )->centered<-
) ( https://github.com/jay-hodgson/markdown-it-center-text )IMPORTANT: After installing, you should look at the "User Settings" section in the code at the top of the script. There you can edit the shortcut menus and set defaults for many UI features. There is additional information in the comments.
NOTE: By default, userscripts will not run on file:/// urls, so for this script to work, you will have to enable it in your browser extension settings (e.g.: For Tampermonkey in Chrome, go to Chrome the extension page, click the details button on the Tampermonkey pane and check 'Allow access to file URLs'). Safari does not allow local directories to be browsed, so the script will not work on local directories, but it will work on remote directories (or on local directories through a local server).
NOTE: The script works on many server-generated index pages, too. Just add an @include line for each url at the top of the script.
NOTE: This script was developed in Vivaldi, running on Mac OS High Sierra. It has been tested in several other Chrome and Gecko-based browsers. It has been very minimally tested on Windows and not at all on other OSes or browsers. It should work, but please report any issues. No attempt has been made to support older browsers.
KEYBINDINGS (These don't work in all browsers):
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址