Skip to content

Instantly share code, notes, and snippets.

@lonerunner
Last active December 20, 2018 21:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonerunner/86310b577c7bc4f33d37 to your computer and use it in GitHub Desktop.
Save lonerunner/86310b577c7bc4f33d37 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Very Simple Steam Winter Sale 2015 Auto Clicker Script, now updated for winter sale 2018
// @namespace http://onedesign.me/
// @version 0.3
// @description Simple auto clicker script. It checks on every page load if button with specific id or class exists and click on it. You can use it to loop through queues required to get the cards. How to use it? Since script always checks for queue, enable the script go to Steam home page or your queue, let it loop, and once you get 3 cards disable the script.
// @author Aleksandar
// @match https://store.steampowered.com/*
// @grant none
// @require https://code.jquery.com/jquery-latest.js
/* globals jQuery, $, waitForKeyElements */
// ==/UserScript==
if ($('.btn_next_in_queue').length){
$('.btn_next_in_queue').trigger('click');
}
if ($('#refresh_queue_btn').length){
$('#refresh_queue_btn').trigger('click');
}
if ($('.discovery_queue_overlay_bg').length){
$('.discovery_queue_overlay_bg').trigger('click');
}
if ($('.agegate_text_container').length){
$('.btn_grey_white_innerfade').first().trigger('click');
}
if ($('#agecheck_form').length){
$('#agecheck_form').children('.btnv6_blue_hoverfade').trigger('click');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment