Skip to content

Instantly share code, notes, and snippets.

@nickrod518
Forked from graymouser/hb_all_books_dl.js
Last active April 17, 2019 17:17
Show Gist options
  • Save nickrod518/dd115dc8f66615cdfaaf7c48e09fa54c to your computer and use it in GitHub Desktop.
Save nickrod518/dd115dc8f66615cdfaaf7c48e09fa54c to your computer and use it in GitHub Desktop.
Humble Bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript.
This will download all MOBI, EPUB, PDF HD, CBZ, and Zip formats.
*/
$('a').each(function(i) {
if ($.trim($(this).text()) == 'MOBI|EPUB|PDF( ?\(H.\))?|CBZ|Download') {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment