Added new Scripts

+ Steam Key finder
+ Steam Key guesser (replaces "?" with random numbers) and batch activator
This commit is contained in:
Marvin Scham
2021-11-22 01:50:26 +01:00
committed by GitHub
commit c2a2f9cbbd
2 changed files with 394 additions and 0 deletions

29
Find Steam Keys.user.js Normal file
View File

@@ -0,0 +1,29 @@
// ==UserScript==
// @name Find Steam Keys
// @version 1.0
// @description Will attempt to find potential Steam Keys anywhere
// @author marvinscham
// @icon https://marvinscham.de/assets/favicon-32x32.png
// @match *://*/*
// @exclude http://store.steampowered.com/account/registerkey*
// @namespace https://marvinscham.de
// @grant none
// ==/UserScript==
(function () {
function activateProduct(productKey) {
let activeproduct = window.open(
"https://store.steampowered.com/account/registerkey?key=" + productKey,
"activateproduct",
"width=990,height=1000,resizable=0,scrollbars=0,status=0,location=0"
);
};
setTimeout(function () {
let result = document.body.innerText.match(/(?:(?:[0-9A-Z?]{5}-){2}){1,2}[0-9A-Z?]{5}/g);
if (result.length > 0) {
if (confirm("Potential Steam Keys found:\n\n" + result.join("\n"))) {
activateProduct(result);
}
}
}, 1000);
})();