NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
This script works on local directories as well as many remote server-generated index pages (“open directories”).
See screenshots and description below. For more detailed usage information, see the “Help” item in the main menu of the script UI.
→ If you like this script, please consider leaving a RATING or buying me a coffee or making a donation, or sending me a comment to let me know what you think. Thank you!
BEFORE
AFTER with dark theme and image grid
MEDIA PLAYBACK with dark theme and cover art
MARKDOWN editing and preview, with subdirectory browsing
FONT GRID
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 buying me a coffee or 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 )KEYBINDINGS (These don't work in all browsers):
IMPROVED: Added support for .avif images.
FIXED: A minor styling glitch in the directory listings.
IMPROVED: Added numbering for grid items.
FIXED: The grid item count displayed in the title bar was not always correct (and the code was ridiculously overly complexificated).
FIXED: Some long-standing issues with the Reload function and button. Reload also now resets media durations.
FIXED: An issue with grids where after closing a previewed item the grid would scroll to the first item instead of the selected item.
IMPROVED: Better styling for PDF/HTML files in dark mode: colors are more accurately rendered, and images in htm files are not inverted.
FIXED: The "Playing:" media file name wasn't always removed from the window title when it should have been.
NEW: Added UI option to show title of playing media in window title.
NEW: Added UI option to invert colors in HTML and PDF files when the main UI theme is dark.
IMPROVED: Enabled lazy load for image thumbnails; removed UI preference to "always show image thumbnails" since it is no longer needed.
FIXED: Links in HTML files didn’t work properly.
FIXED: Various fixes for media shuffle play:
FIXED: Media playback sometimes did not skip unchecked items.
FIXED: An issue with dismissing warning messages via the "Return" key.
FIXED: An obscure issue where remotely-hosted webloc files would not load, even though local webloc files would.
OTHER: Various style fixes and tweaks.
FIXED: Audio player would be hidden when certain content types were being loaded.
FIXED: If the audio player was positioned at the bottom of the window it would revert to the default top position upon window resize.
Another small fix for "quicklooked" audio files.
A couple of fixes for the previous fixes.
Note that .cue files cannot be read by the browser; however, if you change the extension to .cuetxt (and ensure that the file name exactly matches that of the associated media file), when you select the media file the script will automatically locate the .cuetxt file and load it for display in a menu item in the title area of the content pane.
FIXED: Long cuesheet menus could not be scrolled.
FIXED (or improved): The cuesheet tracklist menu only displayed the cumulative times for each track; now both the duration of the track and the cumulative time is displayed.
IMPROVED: Click the cuesheet tracklist icon to keep the menu open without hovering; click again to toggle closed.
IMPROVED: Added arrow key navigation to cuesheet tracklist menu.
IMPROVED: Display the name of the currently playing cuesheet track in the audio player.
IMPROVED: Automatically select the currently playing cuesheet track in the cuesheet menu when the player position changes (either by ordinary playback, user scrubbing, or clicking the audio player).
FIXED: Video did not stop playing when other content was selected.
FIXED: Remove cover art from quick-viewed audio items.
FIXED: A few other small UI issues.
FIXED: Clicking audio title w/o any other content open closes audio.
FIXED: Close quickview content when selected item is an ignored type.
FIXED: A nasty bug when changing the sidebar sort with open subdirectories.
FIXED: Multiple issues with selecting multiple dirs or files (images and fonts only) via the keyboard (Shift+ArrowKey); images and fonts now correctly open in the grid view and permit further selections.
FIXED: An issue where the texteditor would not receive focus on clicking.
FIXED: Various minor UI issues.
IMPROVED: Added UI Pref option to position audio player at bottom of content pane.
IMPROVED: Added the ability to select a range of items (dirs, fonts, or images only) by shift+click.
IMPROVED: Reselect sidebar item when content focused if it is not selected.
IMPROVED: Shuffle media play will now choose an item selected via the up/down arrow keys as the next item to play.
OTHER: Updated and overhauled the help page.
IMPROVED: On autoload audio coverart, don't scroll sidebar item into view.
FIXED: Several issues with fetching and refreshing media durations, especially when opening multiple subdirectories.
FIXED: Some issues with arrow key navigation in font and image grids.
FIXED: Clicking the checkbox next to the "Name" sorting item didn't toggle all media checkboxes.
FIXED: An audio file loaded into the audio player from an opened subdirectory was not reselected after closing and opening the subdir.
FIXED: Some issues with shuffle media play.
FIXED: An issue with hovering and simultaneously using the arrow keys to navigate the main menu.
FIXED: Various issues that caused inaccurate media durations to be reported in the stats.
FIXED: Various issues with the text file editor.
FIXED: Closing a playlist where the media durations had not fully loaded could produce duration errors in media files (if any) in the previously opened directory.
FIXED: Don"t reload currently playing video when arrow navigating from video to audio file and back to video.
FIXED: Other minor UI issues.
IMPROVED: Added an icon in the content title to allow quick toggling between text editing enabled/disabled modes.
IMPROVED: Allow toggling between raw and styled text views when text editing is disabled.
IMPROVED: Hide some text editing menu items when text editing is disabled.
OTHER: Some code cleanup.
FIXED: Highlighting problem with items in previewed dirs.
CHANGED: Allow pointer events in quicklooked items.
A few more bugfixes
FIXED: Don't style list elements in previewed text and html files.
FIXED: Disable quicklook feature in previewed text and html files.
FIXED: Quicklooked text files should not display text editor UI.
Quick fix: Removed "about:blank" from @match rules.
Bugfixes
FIXED: Closing a previewed font glyph would close the font itself.
FIXED: Quicklooked font files could not be closed.
FIXED: Quicklooked text files should not display text editor UI.
FIXED: Fonts in grid view could not be Quicklooked.
FIXED: An issue with font specimen glyph display.
FIXED: Scroll selected grid item into view after closing quicklooked grid item.
FIXED: Text files would not display if text editing was disabled.
FIXED: An issue with grid navigation.
FIXED: Several issues with text editor split view display.
Other small UI fixes.
MAJOR UPDATE with many additions, bugfixes, and potentially BREAKING CHANGES.
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.
Rating: 7