Last active
July 17, 2025 18:32
-
-
Save lats/c920866caf9c0cb04e82abba411e1bb9 to your computer and use it in GitHub Desktop.
Tampermonkey script to claim all of the items within a Bundle on Itch.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Activate all Itch.io Bundle downloads | |
// @version 1 | |
// @include https://itch.io/bundle/download/* | |
// @include https://*.itch.io/* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
$(document).ready(function() { | |
setTimeout(function() { | |
if (window.location.href.indexOf('https://itch.io/bundle/download/') == 0) { | |
// Bundle page | |
var claimButtons = $('button[value="claim"]'); | |
if (claimButtons.length > 0) { | |
// Claim the first unclaimed game on the page | |
claimButtons.first().click(); | |
} | |
else { | |
// Advance to the next page if all are already claimed | |
var nextPageButtons = $('a.next_page.button'); | |
if (nextPageButtons.length > 0) nextPageButtons[0].click(); | |
} | |
} | |
else if (!window.location.href.indexOf('https://itch.io/bundle/download/') == 0) { | |
// Download page, return to bundle | |
window.history.back(); | |
} | |
} | |
// Amount of time, in MS, to wait between 'clicks' | |
,2000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Idk if its exactly how you want it (for only sale items), but something like that does already exist. https://github.com/Smart123s/ItchClaim