Skip to content

Instantly share code, notes, and snippets.

@AlbinoDrought
Last active March 7, 2020 18:25
Show Gist options
  • Save AlbinoDrought/14706cfb6876acebe26a80827df56d37 to your computer and use it in GitHub Desktop.
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
// ==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