Last active
June 13, 2020 23:11
-
-
Save littleq0903/91a6f0d6acb6edf886dd4677e34b6b9c to your computer and use it in GitHub Desktop.
Automatically claim games on itch.io, powered by ScriptAutoRunner Chrome extension
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
var currentUrl = window.location.toString(); | |
console.log(currentUrl); | |
if (currentUrl.includes("/download/") && !currentUrl.includes("/bundle/")) { | |
window.history.back(); | |
} | |
else if (currentUrl.includes("/bundle/download/")) | |
{ | |
if ($('[value="claim"]') && $('[value="claim"]')[0]) { | |
$('[value="claim"]')[0].click(); | |
} else { | |
$('.next_page')[0].click() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment