With one of the last huge bundles someone wrote a script to import all the items in. It's possible it could be tweaked for this bundle.
https://medium.com/@stadja/auto-claim-your-itch-io-mega-bundle-games-c425f6a9c1aa
With one of the last huge bundles someone wrote a script to import all the items in. It's possible it could be tweaked for this bundle.
https://medium.com/@stadja/auto-claim-your-itch-io-mega-bundle-games-c425f6a9c1aa
I had to modify the script, but it finally worked.
This is the script that worked for me:
// 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()
}
In the line 7 of the original script, you can see that the script tells the browser to go back to the list page after adding a game:
window.history.back();
This made my browser go back to the start page, so I modified it to click the button to go to the list page:
$('.nav_btn')[1].click();
I hope this helps.
Oooh!
The original [ window.history.back() ] version worked for me, whereas the [ $('.nav_btn')[1].click(); ] suggestion went back to page one of the bundle each time. It would then grind back to the right page and continue, but it was adding serious runtime and consequent CPU usage.
It is currently doing the Bundle for Racial Justice and Equality for me. It got stuck at one point - some publisher removed three games from here and the script can't cope with the resulting error pages. Fortunately, they were all on the same one of the fifty nine pages of items, so it was easy to do the remainder on that page manually then resume the script on the next page.. and I see it's just finished.
Thanks to you and, of course, the author of the original script.
Itch really should do this automatically with a single button click, of course, but hey ho...