您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes directory index pages (either local or remote open directories) actually useful. Adds sidebar and content preview pane; keyboard navigation; sorting; light/dark UI; preview images/fonts in navigable grids; browse subdirectories w/o page reload; media playback, with shuffle/loop options; basic playlist (m3u) & cuesheet (.cue) support; create, edit, preview, save markdown/plain text files; much more.
当前为
MAJOR UPDATE with many additions, bugfixes, and potentially BREAKING CHANGES. See changelog below.
If you like this script, please consider buying me a coffee or making a donation, leaving a rating, or sending me a comment to let me know what you think. Thank you!
This script works on local directories as well as many remote server-generated index pages (“open directories”). Remote server URLs should be added to the allowed sites in the script settings provided by your userscript manager (e.g., Greasemonkey or Tampermonkey). Because server configurations vary, the script may not work perfectly (or at all) on some sites; you may need to allow or block javascript on some open directories to make the script work correctly. Please let me know if you encounter any problems.
For detailed usage information, see the “Help” item in the main menu of the script UI.
NOTE: This script was developed in the latest version of Vivaldi, running on MacOS. It has been minimally tested in other Chrome-based browsers, Safari, and Firefox, and has been not been tested in any other browsers or OSes. No effort has been made to ensure compatibility with older browsers. Please report any issues.
IMPORTANT: After updating to this version, select “User Settings > Reset User Settings” from the main script menu, **or* delete the query string from the URL on all open tabs that use this script.* If you have bookmarked any pages, you will have to do the same thing and replace the bookmark. This is necessary because the behavior of user settings has changed and some old query strings no longer work.
IMPROVED: Better handling of some remote server configurations.
IMPROVED: Better handling of very large directories, which may take a long time to process.
ADDED: Pressing the “Escape” key or Cmd/Ctr + . will cancel content loading.
IMPROVED: Better handling of php-based directories (e.g., those containing “index.php?folder=xyzxyz” items).
IMPROVED: Some servers don’t correctly report media durations on initial page load; in such cases the script shows the duration as 0:00, and the file is marked disabled, even though the file is available on the server. Now you can refresh the duration individually by selecting such files, or globally (both in the sidebar and the content pane) via the main script menu > “Media Preferences > Refresh Media Durations.” Of course, if there really is a problem with the file or it is missing (e.g., from a playlist), the duration will not be updated and the file will still be disabled.
ADDED: “Quicklook”-like feature (as in MacOS) for previewed directories: with the content pane focused, press spacebar to show a preview of the selected item, press again to close. Works for directories, image grids, and font glyph grids. Use arrow keys to navigate as usual.
CHANGED: Rearranged main menu; removed “My Sample Bookmark Menu” and “Export Settings” items.
ADDED: Menu item to show image thumbnails for dir items (in small or larger sizes) from main menu.
ADDED: Menu item and shortcut to go to a sidebar item by its row number.
ADDED: Set custom UI font from new main menu item.
ADDED: Scale the UI (75%–125%) from new main menu item.
ADDED: Select multiple dir items, either by Cmd-click, Shift-Up/Down Arrow, or Cmd-A (to select all). This allows multiple subdirectories to be opened or closed with one keystroke (Cmd-Left/Right Arrow). Multiple images/fonts will be displayed in a grid view. Other file types will be ignored (at least for now).
ADDED: Font specimen previews: added ability to adjust font size, letter spacing, line height, text color, and text stroke (with browser support).
IMPROVED: Font preview layout.
IMPROVED: Font file glyph display and scaling.
IMPROVED: Audio cover art: if there is an image file with exactly the same name as the selected audio file in the directory, it will be loaded as cover art; otherwise, images files named “cover”, “front”, etc., will be used (previous behavior). This allows each audio file to have its own cover art.
IMPROVED: Audio cover art now loads only from the same directory as the selected audio item; useful when playing audio from subdirectories.
ADDED: Show count of remaining media items when shuffle playback is checked.
ADDED: Initial support for youtube links in m3u playlists
IMPROVED: Playlists now use the name defined in EXTM3U instead of creating one from the link
IMPROVED: Completed “Help” instructions on how to use the script.
IMPROVED: Better notification for “file not found” errors; this happens mainly when clicking links in html files or using playlists.
IMPROVED: Better handling of link files (.webloc/.url); now a clickable link is shown in content pane; (link files can still be opened from sidebar by double-clicking or cmd/ctr-arrowdown.)
IMPROVED: Video player display.
IMPROVED: Set default media volume to 50%.
IMPROVED: Help menu: added more information and trouble-shooting section.
ADDED: Display item description in remote directories (if provided by server).
ADDED: Select main menu items by typed string and arrow navigation
FIXED: Various issues with warnings not being shown when they should have been.
FIXED: Sorting header display for previewed directories containing media files.
FIXED: An issue with playing the next user-selected media item.
FIXED: Media durations in subdirectories were not always displayed correctly.
FIXED: Tab key navigation was not working in all cases.
FIXED: Navigation history was not properly stored in some circumstances (mainly when opening subdirectories).
FIXED: Long-standing problem with checkboxes in Firefox.
IMPROVED: Reopening a subdirectory will reselect the currently displayed content pane item, if it is contained in that subdirectory.
REMOVED: Option to set text editor theme independently from main UI theme as it added complexity without corresponding benefit.
OTHER: Many other small improvements and bugfixes.
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. Add urls in the script settings provided by you userscript editor (e.g., greasemonkey or tampermonkey).
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):
PREVIOUS CHANGES
VERSION 6.3.4.2 (2021-09-09):
Restored text editing functions as @required scripts seem to be loading normally again
VERSION 6.3.4.1 (2021-09-05):
TEMPORARILY DISABLED all text editing functions, until issue with loading required external scripts is resolved.
VERSION 6.3.4 (2021-09-02)
FIXED: Better handling of empty directories.
FIXED: Prevent opening plain text files with Cmd-down arrow if they are not formatted as m3u playlists.
VERSION 6.3.3 (2021-08-18)
FIXED: Autoload media (and possibly a few other functions) wasn't working.
VERSION 6.3.2 (2021-08-01)
FIXED: Linked stylesheets weren't being removed from previewed directories.
ADDED: mkv and mka to the list of supported media formats. (N.b.: This script does not enable your browser to play these formats; it may require a plugin to do so.)
OTHER: Minor compatibility improvements and UI tweaks.
VERSION 6.3.1 (2021-06-20)
IMPROVED: Compatibility with additional server configurations
• A few minor UI fixes.
VERSION 6.3.0 (2021-06-13):
IMPROVED: Compatibility with some server configurations.
FIXED: Some long-standing issues with HTTP error handling. Error pages will now be displayed in the sidebar or content pane, according to context.
ADDED: Clicking items in the stats footer details view will also change the view to sort by kind.
VERSION 6.2.0 (2021-05-28):
ADDED: Add stats footer to content pane for directory previews.
ADDED: Show total media durations in stats footer.
FIXED: Media durations were not showing in subdirectory listings.
FIXED: Sidebar stats footer was not displayed for playlists/filelists
VERSION 6.1.6: (2021-04-10) MINOR UPDATE:
VERSION 6.1.5: (2021-02-13)
FIXED: Cuesheets weren't being processed correctly.
VERSION 6.1.4: (2021-01-29)
FIXED: Media autoplay failed if the next track was of a different kind (e.g., video after audio).
FIXED: Textareas and form elements in HTML pages could not be focussed when clicked.
VERSION 6.1.3: (2021-01-13)
FIXED: Various issues with keyboard navigation in the content pane.
FIXED: Various issues with audio playback from the content pane
FIXED: The Prev/Next buttons did not loose focus after being clicked.
FIXED: A rare bug with processing paths containing a “ (left double quote) followed by a " (straight quote).
OTHER: Updated markdown-it to 12.0.4.
VERSION 6.1.2: (2021-01-04)
FIXED: An issue with media playback when one or more items were unchecked.
VERSION 6.1.1: (2020-12-29)
FIXED: Some issues with the reload button.
VERSION 6.1.0: (2020-12-23)
ADDED: Button to open html files in the text editor.
ADDED: Click an item in the Stats menu to select the first matched item in the directory list.
ADDED: Double-click the resize handle in the text editor to reset the visible panes width to 50%.
FIXED: An issue with tabbing into html files with links or other selectable elements.
FIXED: UI prefs for the text editor weren't being set or honored between sessions.
FIXED: Various issues with sync scroll and resizng the text editor panes.
FIXED: An issue where playlist items with a ? in the pathname were not processed correctly.
FIXED: Long cue sheet menus couldn't be scrolled.
Many other bugfixes.
VERSION 6.0.0 (2020-09-07):
CHANGELOG:
SUBDIRECTORIES! (You can thank me here.) Media additions and improvements: durations, playlists, cue sheets, and more.
(NOTE: Some internal prefs and settings have been changed. If you find that a previously open page doesn't load correctly after updating, try clicking "Default User Settings" in the main menu, or deleting the query string from the page url.)
NEW: Now you can browse subdirectories in directory indexes!
Click the directory icon to show the subdirectory's contents; click again to close it. You can also use Cmd/Ctrl-Right Arrow to open it and Cmd/Ctrl-Left Arrow to close it. (If this doesn't convince you to send me some love, I don't know what will.)
For now, sorting of subdirectories is not supported; clicking a new sort will close all open subdirectories.
NEW: Show length/duration of media tracks(!); allow sorting by track duration.
NEW: Basic support for .cue sheet files.
When a media file (audio or video) is loaded from the sidebar, the script will look for a .cue file in the same directory with EXACTLY the same name as the media file.
If it finds one, it will load the Track ID, the PERFORMER, the TITLE, and the INDEX (time position) from the cuesheet into a menu next to the audio player or in the title bar for videos; there is no support for other cue sheet commands.
Selecting one of the tracks will jump media playback to that time.
Note: .cue files can be selected independently in the sidebar and edited and saved (locally), or created in the Text Editor. This may be handy for creating a bookmark for a long media track when a .cue file is not available (for example, for an audiobook downloaded from YouTube).
Note (MacOS): If you prefer not to clutter the sidebar with .cue files, you can make them invisible by adding a dot to beginning of the file name; the script will still find them.
IMPROVED: Playlist files: Although .m3u
files are just plain text, the browser interprets them as binary and will not open them; this is why the script has the "Open Playlist" menu item.
However, if you change the playlist extension to .txt
, the script will be able to read the file as editable text as usual.
What's new is that if you select such a renamed playlist in the sidebar and then double-click it or type Cmd/Ctr + Down Arrow
or Cmd/Ctr + Return
, the script will load the playlist in the sidebar.
NOTE: The renamed .m3u file must be in EXTM3U format.
ADDED: Option to allow playback of all media files( i.e., audio and video), not just the currently selected media type.
ADDED: "Close Playlist" menu item and button which are visible when a playlist/filelist is open.
FIXED: Cmd+W
did not close playlists.
ADDED: Loop and shuffle playback options for video files.
FIXED: Loop audio playback was broken.
ADDED: New menu item: "Media Files", with options to "Play All Media Files," "Loop Media", and "Shuffle Media"; the latter two are useful when viewing video files.
FIXED: Media tracks should scroll into view when track ends and next track begins playback.
FIXED: Playlists: caps in file extensions caused incorrect file type detection.
FIXED: Various issues with closing previewed content.
FIXED: Setting text editing options was broken.
FIXED: Handling of HTTP error pages wasn't working. Oh, the irony.
FIXED: "View Sidebar Directory Source" wasn't working.
FIXED: Some issues with autoloading files from file (i.e., not directory) URLs.
CHANGED: Reorganized main menu to make it more compact.
CHANGED: Audio player now displayed at top of content pane, so that the content title is visually connected to the displayed content.
CHANGED: Added .m3u
files to the list of ignored formats.
CHANGED: Disabled media checkboxes in Firefox, because Firefox s*cks.
UPDATED Help menu with additional information.
IMPROVED: If you navigate up to a parent directory that contains audio, images, and directories, and if autoloadmedia === true, and if the script's navigation history includes the parent directory, the parent directory will be selected in the sidebar for navigation, while the audio and image file will be loaded and highlighted in the sidebar.
IMPROVED: .webloc and .url files can be opened from preview pane.
IMPROVED: Hovering specific items in the stats will scroll the first instance of that kind in the sidebar into view. Also limited max-height of stats and allowed scrolling.
OTHER: Completely reworked the code for getting directory stats.
OTHER: A few UI refinements.
OTHER: More performance improvements: Removed a bunch of redundant code and function calls, reduced initial DOM manipulations, converted many strings to template literals for more efficient parsing and concatenation.
VERSION 6.3.4.2 (2021-09-09):
Restored text editing functions as @required scripts seem to be loading normally again
VERSION 6.3.4.1 (2021-09-05):
TEMPORARILY DISABLED all text editing functions, until issue with loading required external scripts is resolved.
VERSION 6.3.4 (2021-09-02)
FIXED: Better handling of empty directories.
FIXED: Prevent opening plain text files with Cmd-down arrow if they are not formatted as m3u playlists.
VERSION 6.3.3 (2021-08-18)
FIXED: Autoload media (and possibly a few other functions) wasn't working.
VERSION 6.3.2 (2021-08-01)
FIXED: Linked stylesheets weren't being removed from previewed directories.
ADDED: mkv and mka to the list of supported media formats. (N.b.: This script does not enable your browser to play these formats; it may require a plugin to do so.)
OTHER: Minor compatibility improvements and UI tweaks.
VERSION 6.3.1 (2021-06-20)
IMPROVED: Compatibility with additional server configurations
• A few minor UI fixes.
VERSION 6.3.0 (2021-06-13):
IMPROVED: Compatibility with some server configurations.
FIXED: Some long-standing issues with HTTP error handling. Error pages will now be displayed in the sidebar or content pane, according to context.
ADDED: Clicking items in the stats footer details view will also change the view to sort by kind.
VERSION 6.2.0 (2021-05-28):
ADDED: Add stats footer to content pane for directory previews.
ADDED: Show total media durations in stats footer.
FIXED: Media durations were not showing in subdirectory listings.
FIXED: Sidebar stats footer was not displayed for playlists/filelists
VERSION 6.1.6: (2021-04-10) MINOR UPDATE:
VERSION 6.1.5: (2021-02-13)
FIXED: Cuesheets weren't being processed correctly.
VERSION 6.1.4: (2021-01-29)
FIXED: Media autoplay failed if the next track was of a different kind (e.g., video after audio).
FIXED: Textareas and form elements in HTML pages could not be focussed when clicked.
VERSION 6.1.3: (2021-01-13)
FIXED: Various issues with keyboard navigation in the content pane.
FIXED: Various issues with audio playback from the content pane
FIXED: The Prev/Next buttons did not loose focus after being clicked.
FIXED: A rare bug with processing paths containing a “ (left double quote) followed by a " (straight quote).
OTHER: Updated markdown-it to 12.0.4.
VERSION 6.1.2: (2021-01-04)
FIXED: An issue with media playback when one or more items were unchecked.
VERSION 6.1.1: (2020-12-29)
FIXED: Some issues with the reload button.
VERSION 6.1.0: (2020-12-23)
ADDED: Button to open html files in the text editor.
ADDED: Click an item in the Stats menu to select the first matched item in the directory list.
ADDED: Double-click the resize handle in the text editor to reset the visible panes width to 50%.
FIXED: An issue with tabbing into html files with links or other selectable elements.
FIXED: UI prefs for the text editor weren't being set or honored between sessions.
FIXED: Various issues with sync scroll and resizng the text editor panes.
FIXED: An issue where playlist items with a ? in the pathname were not processed correctly.
FIXED: Long cue sheet menus couldn't be scrolled.
Many other bugfixes.
VERSION 6.0.0 (2020-09-07):
CHANGELOG:
SUBDIRECTORIES! (You can thank me here.) Media additions and improvements: durations, playlists, cue sheets, and more.
(NOTE: Some internal prefs and settings have been changed. If you find that a previously open page doesn't load correctly after updating, try clicking "Default User Settings" in the main menu, or deleting the query string from the page url.)
NEW: Now you can browse subdirectories in directory indexes!
Click the directory icon to show the subdirectory's contents; click again to close it. You can also use Cmd/Ctrl-Right Arrow to open it and Cmd/Ctrl-Left Arrow to close it. (If this doesn't convince you to send me some love, I don't know what will.)
For now, sorting of subdirectories is not supported; clicking a new sort will close all open subdirectories.
NEW: Show length/duration of media tracks(!); allow sorting by track duration.
NEW: Basic support for .cue sheet files.
When a media file (audio or video) is loaded from the sidebar, the script will look for a .cue file in the same directory with EXACTLY the same name as the media file.
If it finds one, it will load the Track ID, the PERFORMER, the TITLE, and the INDEX (time position) from the cuesheet into a menu next to the audio player or in the title bar for videos; there is no support for other cue sheet commands.
Selecting one of the tracks will jump media playback to that time.
Note: .cue files can be selected independently in the sidebar and edited and saved (locally), or created in the Text Editor. This may be handy for creating a bookmark for a long media track when a .cue file is not available (for example, for an audiobook downloaded from YouTube).
Note (MacOS): If you prefer not to clutter the sidebar with .cue files, you can make them invisible by adding a dot to beginning of the file name; the script will still find them.
IMPROVED: Playlist files: Although .m3u
files are just plain text, the browser interprets them as binary and will not open them; this is why the script has the "Open Playlist" menu item.
However, if you change the playlist extension to .txt
, the script will be able to read the file as editable text as usual.
What's new is that if you select such a renamed playlist in the sidebar and then double-click it or type Cmd/Ctr + Down Arrow
or Cmd/Ctr + Return
, the script will load the playlist in the sidebar.
NOTE: The renamed .m3u file must be in EXTM3U format.
ADDED: Option to allow playback of all media files( i.e., audio and video), not just the currently selected media type.
ADDED: "Close Playlist" menu item and button which are visible when a playlist/filelist is open.
FIXED: Cmd+W
did not close playlists.
ADDED: Loop and shuffle playback options for video files.
FIXED: Loop audio playback was broken.
ADDED: New menu item: "Media Files", with options to "Play All Media Files," "Loop Media", and "Shuffle Media"; the latter two are useful when viewing video files.
FIXED: Media tracks should scroll into view when track ends and next track begins playback.
FIXED: Playlists: caps in file extensions caused incorrect file type detection.
FIXED: Various issues with closing previewed content.
FIXED: Setting text editing options was broken.
FIXED: Handling of HTTP error pages wasn't working. Oh, the irony.
FIXED: "View Sidebar Directory Source" wasn't working.
FIXED: Some issues with autoloading files from file (i.e., not directory) URLs.
CHANGED: Reorganized main menu to make it more compact.
CHANGED: Audio player now displayed at top of content pane, so that the content title is visually connected to the displayed content.
CHANGED: Added .m3u
files to the list of ignored formats.
CHANGED: Disabled media checkboxes in Firefox, because Firefox s*cks.
UPDATED Help menu with additional information.
IMPROVED: If you navigate up to a parent directory that contains audio, images, and directories, and if autoloadmedia === true, and if the script's navigation history includes the parent directory, the parent directory will be selected in the sidebar for navigation, while the audio and image file will be loaded and highlighted in the sidebar.
IMPROVED: .webloc and .url files can be opened from preview pane.
IMPROVED: Hovering specific items in the stats will scroll the first instance of that kind in the sidebar into view. Also limited max-height of stats and allowed scrolling.
OTHER: Completely reworked the code for getting directory stats.
OTHER: A few UI refinements.
OTHER: More performance improvements: Removed a bunch of redundant code and function calls, reduced initial DOM manipulations, converted many strings to template literals for more efficient parsing and concatenation.
VERSION 4.1.2 FIXED, CHANGED, & IMPROVED: Image, font, and font glyph grids.
FIXED and IMPROVED: Playlists.
IMPROVED: Currently selected sidebar item will now scroll into view after various events, like sorting change, showing/hiding details, resizing sidebar, etc. FIXED: Several menu items weren't working: Default User Settings, Export User settings, Contact, and Donate (that might explain a few things...). FIXED: Document title didn't include entire path. Many other small bug fixes and style tweaks, including some specifically for Firefox and Safari.
VERSION 4.1.1 A few fixes and style tweaks.
VERSION 4.1.0 NEW: Basic support for media playlists (.m3u and .m3u8).
NEW: Open local fonts directly and view font information and complete glyph repertoire. (The previous ability to browse fonts in the directory list is unchanged.)
VERSION 4.0.6.1 FIXED: Really updated markdown-it and plugins.
VERSION 4.0.6
FIXED: An issue with video display.
FIXED: Several styling issues in Firefox, including textarea
in text editor not expanding to full window height.
FIXED: An issue with some servers that add a trailing '/' to the query string.
IMPROVED: Updated markdown-it to v9.0.1; also updated some markdown-it plugins.
NEWS: Version 4.1, with a new feature of interest to designers, is in development.
VERSION 4.0.5b IMPROVED: Clicking "Parent Directory" link in previewed directories now remembers sorting and numbering prefs. FIXED: Hopefully fixed close content behavior. FIXED: Several bugs with sorting items by size. FIXED: Various minor styling issues and tweaks. Known issue: PDFs don't always display when selected; this seems to be an issue with Chrome. I will attempt to address this in future updates.
VERSION 4.0.4b Wrapping things up.... FIXED: Left/Right arrow key navigation failed for video files FIXED: Content preview title wasn't being set for autoloaded images. FIXED: An issue with autoloading media and cover art when the first media file was a video. FIXED: Various issues with parsing local directory indexes in Firefox. FIXED: Various issues with parsing, calculating, and displaying file size and date-modified information. IMPROVED: Attempted to make index-type detection and index prep more generic, so that the script will work with more sites "out of the box." IMPROVED: Made index prep much more efficient, especially for table-type index pages and directories with many items. IMPROVED: Better error handling for directories with percent-encoded characters in file names. IMPROVED: Changed order of sorting headers to better align with sort data in list. OTHER: More minor styling issues and improvements. Please report any bugs or feature requests to mshroud AT gmail.com. And consider buying me a coffee if you find the script useful. Thanks!
VERSION 4.0.3b ADDED: Preview current directory index source: click the double-caret icon in the sidebar stats footer to toggle preview. This is useful for server configurations that include information in addition to the index itself and is quicker than opening a separate "View source" tab. FIXED: An issue with content display caused by the fix for pdf display in the previous version. FIXED: Up directory navigation didn't correctly account for invisible files and directories when selecting previously selected directory. FIXED: More issues with prepping "pre"-type index pages. FIXED: Some issues with Error page display. FIXED: Various minor styling issues. CHANGED: Moved "Disable Text Editing" menu item to top level. Many other small improvements and tweaks.
VERSION 4.0.2b FIXED: Pdf display (I hope).
VERSION 4.0.1b
FIXED: Audio files weren't being loaded.
FIXED: Script would fail if a file name included a special regex character [\^$.|?*+()
.
FIXED: Various issues with parsing "pre"-type index pages.
IMPROVED: Sorting and display of items with names beginning with white spaces.
IMPROVED: More efficient and robust index type detection.
ADDED: Sorting for previewed directory contents. Initial sorting is the same as the parent's current sort pref.
ADDED: Custom icons and numbering for previewed directory contents; numbering reflects the parent's current numbering pref.
NOTE: There is an issue with Chrome browsers and pdf file display, so pdfs don't display reliably.
NOTE: Some further fixes and styles tweaks coming.
VERSION 4.0.0b: Numerous additions, improvements, and massive internal changes. Virtually no line of code has been left untouched. "b" === "bugs" likely; updates will be forthcoming. IMPORTANT: This version uses a new format for user settings in the code; you will have to re-enter your defaults manually after updating. - Do NOT use exported settings from any earlier version of the script. NEW: Added independent text editor pane.
postMessage
to communicate between iframe and parent.
IMPROVED: Content display: use the same code to prep and style directory contents in the preview pane.
IMPROVED: Live sorting of grid items (but images and fonts are still sorted separately).
IMPROVED: Image zoom positioned accurately under click.
IMPROVED: Better handling of 404 Errors (Page not found): server error message will appear in sidebar, warning icon in content pane.
IMPROVED: File URLs: If a file URL (instead of a directory) is entered directly in the browser URL bar, the parent directory will be loaded instead and the file automatically selected.
IMPROVED: Navigation: modifed highlighting styles to show when a non-audio item is selected for navigation vs. when it is loaded in preview pane but not selected (e.g. click a directory and then click an audio file; the directory item will be dimmed).
IMPROVED: Audio: Greatly simplified shuffle play code and fixed several bugs; shuffle list now correctly updates when individual audio tracks are checked or unchecked.
CHANGED: Moved scale buttons and prev/next image buttons to preview title bar.
CHANGED: Sort by "Name" always sorts files and directories together; "Default" sort always keeps files and directories separate.
FIXED: Text editing: Some issues with split-pane resizing.
FIXED: Cmd/Ctr+W (close) should work now: previewed content will be closed first, then audio, then the browser tab itself.
FIXED: Don't autoload audio cover art when next audio track begins; i.e., leave open whatever file is being previewed, including cover art or lyrics.
FIXED: An issue with sorting by size.
FIXED: An issue with the user UI font setting.
FIXED: Navigation by typed string now correctly scrolls directory list.
OTHER: Many small style fixes and tweaks. Among others, make the previewed image and image grid background color light in default theme.
INTERNAL: Complete code overhaul.STILL TO COME:
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址