Last active
July 2, 2016 18:34
-
-
Save ebith/5c3582c24306c603780a3648abb1757a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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