Skip to content

Instantly share code, notes, and snippets.

@TsoliasPN
Forked from graymouser/hb_all_books_dl.js
Last active September 14, 2017 07:54
Show Gist options
  • Save TsoliasPN/1e817ce291a63d2e3066e011fc3cd588 to your computer and use it in GitHub Desktop.
Save TsoliasPN/1e817ce291a63d2e3066e011fc3cd588 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
*/
$('a').each(function(i){
if (['MOBI', 'PDF', 'EPUB', 'PDF (HQ)', 'PDF (HD)'].indexOf($.trim($(this).text())) >= 0) {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}
});
@S3R4F
Copy link

S3R4F commented Sep 14, 2017

Didn't work for me mate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment