-
-
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)
This file contains 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
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