{"id":31137658,"url":"https://github.com/vikindor/twitch-force-sort-viewers","last_synced_at":"2026-05-09T02:32:15.777Z","repository":{"id":315075399,"uuid":"1057938818","full_name":"Vikindor/twitch-force-sort-viewers","owner":"Vikindor","description":"Userscript that auto-sorts Twitch channels by viewers","archived":false,"fork":false,"pushed_at":"2025-09-16T13:55:51.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-16T15:53:33.186Z","etag":null,"topics":["greasyfork","openuserjs","react","sort","spa","tampermonkey","userscript","viewers","violentmonkey"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vikindor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-16T12:08:36.000Z","updated_at":"2025-09-16T14:00:39.000Z","dependencies_parsed_at":"2025-09-16T15:53:34.555Z","dependency_job_id":"72543bb9-1258-43f1-bec3-8959cfaa3ea5","html_url":"https://github.com/Vikindor/twitch-force-sort-viewers","commit_stats":null,"previous_names":["vikindor/twitch-force-sort-viewers"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Vikindor/twitch-force-sort-viewers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikindor%2Ftwitch-force-sort-viewers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikindor%2Ftwitch-force-sort-viewers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikindor%2Ftwitch-force-sort-viewers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikindor%2Ftwitch-force-sort-viewers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vikindor","download_url":"https://codeload.github.com/Vikindor/twitch-force-sort-viewers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vikindor%2Ftwitch-force-sort-viewers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275739918,"owners_count":25519610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["greasyfork","openuserjs","react","sort","spa","tampermonkey","userscript","viewers","violentmonkey"],"created_at":"2025-09-18T09:14:41.857Z","updated_at":"2026-05-09T02:32:15.770Z","avatar_url":"https://github.com/Vikindor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nTwitch - Force sort Viewers High to Low\n\u003c/h1\u003e\n\nUserscript for browsers that automatically sets the Twitch directory sort option to **“Viewers (High to Low)”**.  \nWorks on `/directory`, `/directory/all`, and other Twitch pages with the same sort dropdown.\n\n---\n\n💥 **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.  \nLearn more: [Twitch Enhancer](https://github.com/Vikindor/twitch-enhancer-extension)\n\n---\n\n## ✨ Features\n\n- Forces sorting by *Viewers (High to Low)* on Twitch directory pages.\n- Works across SPA navigations (React router) and on initial load.\n- Works with all languages.\n- Two configurable run policies:\n  - **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).\n  - **perLoad** — applies once per URL on each page load. Refreshing with F5 will re-apply the sort.\n\n## 🖼 Screenshots\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/browse_sorting.jpg\" width=\"47%\" alt=\"Browse page sorting screenshot\" title=\"Browse page sorting\" style=\"margin: 1%;\" style=\"max-width: 100%;\"/\u003e\n  \u003cimg src=\"media/channels_sorting.jpg\" width=\"47%\" alt=\"Channels page sorting screenshot\" title=\"Channels page sorting\" style=\"margin: 1%;\" style=\"max-width: 100%;\"/\u003e\n\u003c/p\u003e\n\n## 🚀 Installation\n\n1. Install [Tampermonkey](https://www.tampermonkey.net/) (or another userscript manager).\n2. Install the script from one of the mirrors:\n   - [GreasyFork](https://greasyfork.org/en/scripts/549727-twitch-force-sort-viewers-high-to-low)\n   - [OpenUserJS](https://openuserjs.org/scripts/Vikindor/Twitch_-_Force_sort_Viewers_High_to_Low)\n   - Or [install directly from this repository](./Twitch_-_Force_sort_Viewers_High_to_Low.js).\n\n## 🔧 Configuration\n\nOpen the script in your userscript manager and change the value of:\n\n```js\nconst RUN_POLICY = 'perTab';\n```\n\nperTab — recommended for users who want to change sorting manually without interference.\n\nperLoad — recommended for users who always want sorting reset on refresh.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikindor%2Ftwitch-force-sort-viewers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikindor%2Ftwitch-force-sort-viewers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikindor%2Ftwitch-force-sort-viewers/lists"}