Last active
March 7, 2020 18:25
-
-
Save AlbinoDrought/14706cfb6876acebe26a80827df56d37 to your computer and use it in GitHub Desktop.
Automatically accept ToS and redeem Steam keys for those Humble Bundle "Redeem" links
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 Automatically accept ToS and redeem Steam keys | |
// @version 1 | |
// @grant none | |
// @include https://store.steampowered.com/account/registerkey?key=* | |
// ==/UserScript== | |
window.addEventListener('load', function () { | |
var acceptTOS = document.querySelector('#accept_ssa'); | |
if (acceptTOS) { | |
acceptTOS.checked = true; | |
setTimeout(function () { | |
var continueButton = document.querySelector('#register_btn'); | |
if (continueButton) { | |
continueButton.click(); | |
} | |
}, 250 + (Math.random() * 500)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment