Skip to content

Userscript for browsers that auto-sorts Twitch channels by viewers

License

Notifications You must be signed in to change notification settings

Vikindor/twitch-force-sort-viewers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitch - Force sort Viewers High to Low

Userscript for browsers that automatically sets the Twitch directory sort option to “Viewers (High to Low)”.
Works on /directory, /directory/all, and other Twitch pages with the same sort dropdown.

✨ Features

  • Forces sorting by Viewers (High to Low) on Twitch directory pages.
  • Works across SPA navigations (React router) and on initial load.
  • Works with all languages.
  • Two configurable run policies:
    • perTab — applies once per URL within the current tab. If you manually change the sort option, the script won’t override it again (even after F5).
    • perLoad — applies once per URL on each page load. Refreshing with F5 will re-apply the sort.

🖼 Screenshots

Browse page sorting screenshot Channels page sorting screenshot

🚀 Installation

  1. Install Tampermonkey (or another userscript manager).
  2. Install the script from one of the mirrors:

🔧 Configuration

Open the script in your userscript manager and change the value of:

const RUN_POLICY = 'perTab';

perTab — recommended for users who want to change sorting manually without interference.

perLoad — recommended for users who always want sorting reset on refresh.

About

Userscript for browsers that auto-sorts Twitch channels by viewers

Topics

Resources

License

Stars

Watchers

Forks