-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsteam.js
More file actions
20 lines (17 loc) · 751 Bytes
/
steam.js
File metadata and controls
20 lines (17 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ==UserScript==
// @name SteamActivateSubmit
// @version 0.1
// @description Auto submit steam product activation codes
// @author Goofables
// @match https://store.steampowered.com/account/registerkey*
// @icon https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// ==/UserScript==
function check_code() {
if (document.getElementById("error_display").innerHTML !== "") return;
let code = document.getElementById("product_key").value;
document.getElementById("accept_ssa").checked = true;
if (code.length < 7) return;
if (document.getElementById("registerkey_form").style.display !== "") return;
document.getElementById("register_btn").click()
}
setInterval(check_code,50);