Skip to content

Instantly share code, notes, and snippets.

@paucc
Created March 8, 2022 22:49
Show Gist options
  • Save paucc/285a6315f4cb7ba94c385107639e12b7 to your computer and use it in GitHub Desktop.
Save paucc/285a6315f4cb7ba94c385107639e12b7 to your computer and use it in GitHub Desktop.
// is there a game to claim ? if yes, claim it
if ($('[value="claim"]') && $('[value="claim"]')[0]) {
$('[value="claim"]')[0].click();
// have I claimed a game ? If yes, go back
} else if (!window.location.toString().includes("/bundle/download")) {
$('.nav_btn')[1].click();
// no game to claim, no game claimed, change page
} else {
$('.next_page')[0].click()
}
@paucc
Copy link
Author

paucc commented Mar 8, 2022

Auto claim your itch.io mega bundle games (updated for the bundle "Bundle for Ukraine")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment