Last active
February 7, 2025 17:05
-
-
Save whomstssecretplayground/2a1c6e01a403c34bf7c37a4b9015d000 to your computer and use it in GitHub Desktop.
Bunkr File Sorter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Bunkr File Sorter | |
| // @version 1.1.3 | |
| // @namespace https://github.com/whomstssecretplayground | |
| // @description try to take over the world! | |
| // @author whomstssecretplayground | |
| // @match https://bunkr.*/a/* | |
| // @match https://bunkr.ac/a/* | |
| // @match https://bunkr.ah/a/* | |
| // @match https://bunkr.ax/a/* | |
| // @match https://bunkr.black/a/* | |
| // @match https://bunkr.cat/a/* | |
| // @match https://bunkr.ci/a/* | |
| // @match https://bunkr.cr/a/* | |
| // @match https://bunkr.fi/a/* | |
| // @match https://bunkr.la/a/* | |
| // @match https://bunkr.media/a/* | |
| // @match https://bunkr.ph/a/* | |
| // @match https://bunkr.pk/a/* | |
| // @match https://bunkr.ps/a/* | |
| // @match https://bunkr.red/a/* | |
| // @match https://bunkr.si/a/* | |
| // @match https://bunkr.site/a/* | |
| // @match https://bunkr.sk/a/* | |
| // @match https://bunkr.su/a/* | |
| // @match https://bunkr.ws/a/* | |
| // @match https://bunkrr.*/a/* | |
| // @match https://bunkrr.ru/a/* | |
| // @match https://bunkrr.su/a/* | |
| // @match https://bunkrrr.org/a/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=bunkr.red | |
| // @grant window.focus | |
| // @downloadURL https://gist.githubusercontent.com/whomstssecretplayground/2a1c6e01a403c34bf7c37a4b9015d000/raw/bunkr_file_sorter.js | |
| // @updateURL https://gist.githubusercontent.com/whomstssecretplayground/2a1c6e01a403c34bf7c37a4b9015d000/raw/bunkr_file_sorter.js | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| // Filter Bunkr Files by size using the sort buttons | |
| function urlIsBunkr(){ | |
| // console.log(window.location.href); | |
| return window.location.host.includes("bunkr"); | |
| } | |
| function setup(){ | |
| if (!urlIsBunkr()){ | |
| console.log("No bunkr url, exiting...") | |
| return; | |
| } | |
| console.log("Welcome to the Bunkr!"); | |
| try { | |
| // btn btn-sm rounded-md font-semibold [&.current]:bg-body [&.current]:text-subs btnSize current | |
| var sortbutton = document.getElementsByClassName("btnSize")[0]; | |
| console.log(sortbutton); | |
| sortbutton.click(); | |
| sortbutton.click(); | |
| } catch (error) { | |
| } | |
| } | |
| // console.log("Coom!"); | |
| setTimeout(setup, 50); | |
| // console.log("Done!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment