Skip to content

Instantly share code, notes, and snippets.

@qutorial
Forked from graymouser/hb_all_books_dl.js
Last active August 6, 2017 13:16
Show Gist options
  • Save qutorial/6c17c98ba451ec0ce9daceaf7e068b6f to your computer and use it in GitHub Desktop.
Save qutorial/6c17c98ba451ec0ce9daceaf7e068b6f 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){
link_text = $.trim($(this).text());
if ( link_text == 'MOBI' || link_text == 'EPUB' || link_text == 'PDF' ) {
$('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