Skip to content

Vikindor/twitch-force-sort-viewers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 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