Skip to content

Instantly share code, notes, and snippets.

@MisterX2000
Forked from dob9601/humble_download_trove.js
Last active April 28, 2023 05:19
Show Gist options
  • Save MisterX2000/f6af20feda2adb00ad6c23f9692f46ca to your computer and use it in GitHub Desktop.
Save MisterX2000/f6af20feda2adb00ad6c23f9692f46ca to your computer and use it in GitHub Desktop.
Download the whole of the humble trove (if you have subscribed to the humble trove)
var buttons = $("#trove-main .trove-grid .trove-grid-item");
function download() {
$.each(buttons, function(i, btn) {
setTimeout(function() {
btn.click();
$(".js-download-button").click();
$(".js-dismiss").click();
console.log("(" + (i+1) + "/" + buttons.length + ") " + $(".product-human-name").text());
}, 1000 * i);
});
}
download();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment