Created
February 28, 2016 14:09
-
-
Save graymouser/a33fbb75f94f08af7e36 to your computer and use it in GitHub Desktop.
Humble bundle book bundles - download all books at once
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
/* | |
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 ($.trim($(this).text()) == 'MOBI') { | |
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
} | |
}); | |
My JavaScript fork of this script is still working today: https://gist.github.com/zuazo/a91ecbb97b90ef3ef9ce8caf361199a2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to verify your downloads, here's the code to make the md5 hashes visible:
OR...
If you are like me and have way too many book bundles, you might be interested in something like the following code.
It is based upon's @jmerle's approach and is also forked here: https://gist.github.com/fsteffek/bf4ac1e3d2601629a6c9cca94b5649f6.
What does it do?
md5sum
can read/check. Paste it into a file likehb_all_books.md5
...... and check it with
md5sum -c hb_all_books.md5
.Feel free to tell me how to make this script more readable, convenient and generally just better.