Skip to content

Instantly share code, notes, and snippets.

@littleq0903
Last active June 13, 2020 23:11
Show Gist options
  • Save littleq0903/91a6f0d6acb6edf886dd4677e34b6b9c to your computer and use it in GitHub Desktop.
Save littleq0903/91a6f0d6acb6edf886dd4677e34b6b9c to your computer and use it in GitHub Desktop.
Automatically claim games on itch.io, powered by ScriptAutoRunner Chrome extension
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