Skip to content

Instantly share code, notes, and snippets.

@Blumlaut
Created April 29, 2020 19:46
Show Gist options
  • Save Blumlaut/3c3a31c196625d5e4572666b78202603 to your computer and use it in GitHub Desktop.
Save Blumlaut/3c3a31c196625d5e4572666b78202603 to your computer and use it in GitHub Desktop.
steam workshop unsubscribe all in a loop.
// ==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