NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Karen Pommeroy // @namespace karenpommeroy // @version 1.0.0 // @license MIT // @include http://steamcommunity.* // @include https://steamcommunity.* // @include http://www.steamcommunity.* // @include https://www.steamcommunity.* // // @run-at document-end // @grant none // ==/UserScript== (function () { var items = document.querySelectorAll(".itemChoice:not(.inCollection)"); var delay = '250'; var prevIndex = parseInt(window.localStorage.getItem("prevIndex") || 9999); var skipCount = parseInt(window.localStorage.getItem("skipCount")) || 0; console.log(items.length); if (items.length == prevIndex) { skipCount++; } window.localStorage.setItem("prevIndex", items.length); window.localStorage.setItem("skipCount", skipCount); items[skipCount].click(); //setTimeout(function(){}, delay); //items[1].click(); //setTimeout(function(){}, delay); //items[2].click(); //setTimeout(function(){}, delay); //items[3].click(); //setTimeout(function(){}, delay); //items[4].click(); //setTimeout(function(){}, delay); })()