Supercharged Local Directory File Browser

Makes file:/// directory ("Index of...") pages actually useful. Adds navigation links, file preview pane, user-defined shortcuts, filtering, keyboard navigation, more.

As of 2018-03-23. See the latest version.

Author
gaspar_schott
Ratings
0 0 0
Version
1.4
Created
2018-02-18
Updated
2018-03-23
Size
48.9 KB
License
GPL-3.0
Applies to

v. 1.4
• Added: Initial support for Firefox. Tested in Firefox 59, Waterfox 56.
• Changed: Use SVG for menu icons
• Changed: Code cleanup, reorganization
• Renamed script to "Supercharged Local Directory File Browser"

v. 1.3
• Fixed: Keyboard navigation of ignored or invisible items fails if "Hide Invisibles" is toggled off after loading a directory.
• Added: Also hide ignored files if "Hide Invisibles" is checked.
• Added: Content reload button.
• Changed: Reorganized settings to reduce confusion about how ignored files are treated.

v. 1.2
• Click to show menus instead of hover.
• Added Cmd/Crl+Shift+O keybinding to open selected item in new window
• Arrow navigation bugfixes

ABOUT
This script transforms the default local directory page into a full-featured file browser, with a resizable sidebar and preview pane. (See screenshots below.)

Features: keyboard navigation, user-defined bookmarks, filter or ignore file types, show grid of all images in a directory, show or hide invisible files (Mac OS only), navigate apps as folders (Mac OS only), and more.

After installing, you should add your User Name in the settings section of the script. Add directory paths to the shortcuts sections. Additional instructions for other settings can be found there.

Keyboard shortcuts:
• Up arrow, Down arrow: navigate up and down the directory list.
• Left or Right arrow: go to next or previous image in directory, skipping other files
• Cmd/Ctr + Up arrow: go to parent directory
• Cmd/Ctr + Down arrow, Right-arrow: open directory
• Enter/Return: Open directory or file
• Cmd/Ctr + G: show image grid
• Cmd/Ctr + I: Toggle invisible files (Mac OS only)
• Cmd/Ctr + W: Close preview pane (or window/tab if no content in preview pane)
• Cmd/Ctr + Shift + O: Open selected file in new window

NOTE: This script was developed in Vivaldi, running on Mac OS High Sierra, and has been tested in Chromium, Opera Next, Iridium. In general, it should work in all Chrome-based browsers. It has been minimally tested in Windows 10 on Chrome; please report any issues you encounter. It does not work in Safari because Safari does not allow local directories to be browsed.

NOTE: By default, Greasemonkey and Tampermonkey will not run scripts on file:/// urls. For this script to work, you will have to allow these extensions to access local files.
• For Greasemonkey, open about:config and change greasemonkey.fileIsGreaseable to true. (Apparently this option is not available in recent versions of Firefox.)
• For Tampermonkey, go to Chrome extension page, and tick the 'Allow access to file URLs' checkbox at the Tampermonkey extension section.