Skip to content

Instantly share code, notes, and snippets.

// 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 {