miraclewhips / Steam auto-redeem keys

// ==UserScript==
// @name         Steam auto-redeem keys
// @namespace    https://openuserjs.org/users/miraclewhips
// @version      1.0
// @description  Checks the terms & conditions checkbox and redeems key automatically
// @author       miraclewhips
// @match        https://store.steampowered.com/account/registerkey?key=*
// @icon         https://www.google.com/s2/favicons?domain=store.steampowered.com
// @grant        none
// @copyright    2021, miraclewhips (https://openuserjs.org/users/miraclewhips)
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    document.getElementById('accept_ssa').checked = true;
    document.getElementById('register_btn').click();
})();