Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
This could potentially be switched over to send a POST request for each claim button rather than clicking each button (this also avoids opening a bunch of tabs).
Historically, itch has asked to avoid hammering their servers, so the timeout/ratelimit should stay in place.
var $ = window.jQuery; var clicked = 0; var csrfToken = $('input[name="csrf_token"]')[0].value; $('input[name="game_id"]').each(function() { setTimeout(function() { var gameId = $(this).val(); $.post(window.location.href, { action: 'claim', csrf_token: csrfToken, game_id: gameId }); }.bind(this), 400*clicked); clicked++; }); console.log("Auto-claimed " + clicked + " buttons.");