// ==UserScript== // @name Steam Auto Clicker // @version 0.3 // @description Click 'Not Interested' automatically for games in specified user tags. // @author tech_engineer / maestro_it // @match *://store.steampowered.com/app/* // @match *://store.steampowered.com/explore/ // @grant GM_getValue // @grant GM_setValue // ==/UserScript== /* jshint -W097 */ (function(){ "use strict"; // HEY, YOU.... YES YOU.... You NEED to personalize the list of 'unwantedGames', otherwise I will follow what my master have decided... var unwantedGames = ['FPS', 'JRPG', 'Horror', 'Dark Fantasy', 'Gore', 'Violent', 'Zombies']; var autoSubmit = true; // automatically submit the form after the timeout (next var) var timeoutToSubmit = 6; // if autosubmit is enabled wait this amount in seconds before clicking next var showReasons = true; // show the tags next to the not interested button var showDonate = true; // show donation button on the Explore page /* // this is coming soon try { GM_setValue('GM_UnwantedList', unwantedGames); var retVar = GM_getValue('GM_UnwantedList'); console.log('Returned list size is: ' + retVar.length); } catch (e) { console.log('ERROR in GM functions: ' + e); } */ try { if ($J("#next_in_queue_form") !== null) { var needToClick = false; var clickReasons = []; if ($J("div#add_to_wishlist_area_success").is(":hidden")) { // fix the blacklisting of games on wishlist $J("a.app_tag").each(function () { var appTag = $J(this).text().trim(); if ($J.inArray(appTag, unwantedGames) > -1) { //console.log("Game will be marked because of: " + appTag); clickReasons.push(appTag); needToClick = true; } }); if (needToClick) { console.log("Clicking on the 'Not Interested' Button..."); $J('.queue_control_button.queue_btn_ignore .queue_btn_inactive').click(); if (showReasons) { $J('.queue_control_button.queue_btn_ignore .queue_btn_inactive').parent().append(' ' + clickReasons.join(", ") + ""); } } } if (autoSubmit && ($J("div.btn_next_in_queue").length)){ console.log('Adding a timer and setting the interval'); $J('