Script Summary: adds helpful UI features to server-generated directory index pages
Version: 0.0.4
h1. Summary
This userscript turns directory indexes like this:
"!http://masculinehygiene.com/sburke/temp/apache_plain_med.png!":http:
into this:
"!http://masculinehygiene.com/sburke/temp/apache_fancy_med.png!":http:
h1. Full description
Server-generated directory index pages (like "this one":http://haidalanguage.org/date/
) lack some features that I want. So I wrote this GM extension to make it the way I want! Notably:
* The text string "Index of /foo/bar/baz" is replaced by [foo] [bar] baz", where "foo" links to the directory "foo" and "bar" links to the directory "bar". (The "baz" isn't a link, because you're already there.)
* Alt-U is made to go to the parent directory. (Accesskeys are fun!)
* Instead of just headings "Name" "Last modified" "Size" "Description", there's proper tabs for sorting the various ways, with the one for the current mode greyed out.
* The actual directory items get colorbars on alternate lines (like with ledger paper). This is to help readability.
* This userscript works its magic on directory indexes as generated by Apache 1 and Apache 2, and even manages to partly work for some other servers' indexes. If it doesn't know how to deal with an index format, it leaves it alone.
* When the directory index truncates the visible name of a file (like "haida_cal_2004_to_20..>" from "haida_cal_2004_to_2009.rtf"), we put the full filename on the link's "title" attribute, which shows up on a tooltip when you mouse over it.
* Also, it's pretty. Pretty pretty pretty. And configurable in various ways -- see the code.



