Skip to content

Instantly share code, notes, and snippets.

@ebith
Last active July 2, 2016 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebith/5c3582c24306c603780a3648abb1757a to your computer and use it in GitHub Desktop.
Save ebith/5c3582c24306c603780a3648abb1757a to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name steam queue clicker
// @version 1.0
// @author ebith
// @include http://store.steampowered.com/app/*
// @include http://store.steampowered.com/explore/
// @noframes
// ==/UserScript==
document.addEventListener('DOMContentLoaded', () => {
let nextButton = document.querySelector('.btn_next_in_queue');
if (nextButton) {
nextButton.click();
} else {
let refreshQueue = document.querySelector('#refresh_queue_btn');
if (refreshQueue) {
if (/\d/.test(document.querySelector('.subtext').textContent)) {
refreshQueue.click();
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment