HTTP Index Sorter

Enhances pre-formatted HTTP directory listings (Nginx, lighttpd, seedbox indexes, etc.) with sortable columns (name, date, size), file type icons, date grouping, and per-site preferences. Configure which sites to activate on via URL patterns.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
primetime43
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
1.0
Created
2026-02-24
Updated
2026-02-24
Size
23.6 KB
License
MIT
Applies to
All sites

HTTP Index Sorter

Enhances pre-formatted (<pre>) HTTP directory listings with sorting, file type icons, and date grouping. Works with Nginx autoindex, lighttpd, seedbox HTTP indexes (ruTorrent, etc.), and other servers that output plain-text directory listings. Does not work with table-based listings (e.g. Apache with FancyIndexing).

Features

  • Sort by Name, Date, or Size — click the toolbar buttons to sort ascending/descending
  • File Type Icons — entries are prefixed with emoji icons based on file extension (video, audio, archive, image, etc.)
  • Group by Date — toggle date grouping to visually separate entries by day (Today, Yesterday, Jan 15, 2024, etc.)
  • Per-Site Preferences — sort order and grouping settings are saved independently for each URL pattern
  • Item Count — displays the total number of files/folders in the toolbar
  • URL Pattern Settings — configure which sites the script activates on using glob patterns (e.g. https://example.com/files/*)

Getting Started

After installing, the script will not activate on any pages until you add your first URL pattern:

  1. Navigate to an HTTP directory listing page you want to enhance
  2. Click the Tampermonkey extension icon in your browser toolbar
  3. Find HTTP Index Sorter and click the Settings gear icon next to it
  4. Click "+ Add Current Page URL" to add the current page as a URL pattern
  5. The page will reload and the sorting toolbar will appear

You can also open settings from the gear icon in the toolbar on any active page to add, remove, or manage URL patterns manually.

Notes

  • The script uses @match *://*/* so it can run on any site you configure, but it only activates on pages that match your saved URL patterns and are detected as directory listings
  • Patterns use * as a wildcard (e.g. https://example.com/downloads/* matches all pages under /downloads/)
  • Works with date formats: 02-Jan-2024 12:34 and 2024-01-02 12:34