Created
April 29, 2020 19:46
-
-
Save Blumlaut/3c3a31c196625d5e4572666b78202603 to your computer and use it in GitHub Desktop.
steam workshop unsubscribe all in a loop.
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 Unsubscribe All in a Loop | |
// @namespace http://tampermonkey.net/ | |
// @version 4.2.0 | |
// @description yiff yiff | |
// @author Blumlaut and not enough alcohol | |
// @match https://steamcommunity.com/id/bluethefurry/myworkshopfiles/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
setTimeout(unsub, 600) | |
})(); | |
function reload() { // idk | |
location.reload() | |
} | |
function unsub() { | |
var buttons = document.getElementsByClassName('subscribeOption subscribeOptionUnsubscribe'); // collects all subscribeOption buttons on the steam page | |
for(var i = 0; i < buttons.length; i++) { | |
buttons[i].click(); // boop | |
} | |
setTimeout(reload, 600) // reload the page | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment