Skip to content

Instantly share code, notes, and snippets.

@firebotQL
Created October 26, 2017 20:23
Show Gist options
  • Save firebotQL/75f46c68b29365ceb8d460d76ceed3f0 to your computer and use it in GitHub Desktop.
Save firebotQL/75f46c68b29365ceb8d460d76ceed3f0 to your computer and use it in GitHub Desktop.
Humble Bundle Books Download Trigger
/** Quick and dirty solution to start downloading books from humble bundle downloads page if you are lazy to click
** buttons yourself
** Created At: 2017-10-26
** Instructions: Open "Developer Tools" in browser and run this code
** below for automatic books download to start
** NOTE: If you want to download PDF or MOBI just replace EPUB string in the code below and run it.
**/
$(".download.small .flexbtn .a").each(function(idx, e) {
if ($(e).text().indexOf("EPUB") > -1) {
console.log("Downloading: " + $(e).attr("href"));
$(e).click();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment