https://github.com/vikindor/twitch-force-sort-viewers
Userscript that auto-sorts Twitch channels by viewers
https://github.com/vikindor/twitch-force-sort-viewers
greasyfork openuserjs react sort spa tampermonkey userscript viewers violentmonkey
Last synced: about 1 month ago
JSON representation
Userscript that auto-sorts Twitch channels by viewers
- Host: GitHub
- URL: https://github.com/vikindor/twitch-force-sort-viewers
- Owner: Vikindor
- License: mit
- Created: 2025-09-16T12:08:36.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-09-16T13:55:51.000Z (9 months ago)
- Last Synced: 2025-09-16T15:53:33.186Z (9 months ago)
- Topics: greasyfork, openuserjs, react, sort, spa, tampermonkey, userscript, viewers, violentmonkey
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
---
π₯ **New:** This userscript is also available as part of **Twitch Enhancer**, a browser extension for **Chrome** and **Firefox** that combines it with other Twitch quality-of-life improvements.
Learn more: [Twitch Enhancer](https://github.com/Vikindor/twitch-enhancer-extension)
---
## β¨ 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
## π Installation
1. Install [Tampermonkey](https://www.tampermonkey.net/) (or another userscript manager).
2. Install the script from one of the mirrors:
- [GreasyFork](https://greasyfork.org/en/scripts/549727-twitch-force-sort-viewers-high-to-low)
- [OpenUserJS](https://openuserjs.org/scripts/Vikindor/Twitch_-_Force_sort_Viewers_High_to_Low)
- Or [install directly from this repository](./Twitch_-_Force_sort_Viewers_High_to_Low.js).
## π§ Configuration
Open the script in your userscript manager and change the value of:
```js
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.