Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit) (+5)

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

(+2)

It worked! Thank you so much!

Deleted 2 years ago
(+1)

Worked for me as well!

(+10)

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()

}

This looks exactly like the script by stadja@LTN that Scarabium posted above.

What did you "modify"?

(+5)

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.

(+2)

Thank you so much for explaining & clarifying! :)

(+2)

window.history.back(); => $('.nav_btn')[1].click();

Thank you! :)

(+3)

Awesome, it's working perfectly :)

(+3)

It's slow but steady. 👍

(+3)

Saves me from doing it manually and that's all I can ask! 

Did they remove the claim button in the last hour to disable this or am I doing something wrong?

I'm not seeing it on any of the game download pages manually and $('[value="claim"]').length === 0.

The UI doesn't change, the only thing changing is the css. Is the script not working?

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...