Created
June 1, 2017 06:44
-
-
Save dblencowe/02e6763ba64c641c8bb3fc29a291c037 to your computer and use it in GitHub Desktop.
Download all ebooks from Humble Bundle
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
# Paste in to console when on download page | |
$('a').each(function(i){ | |
if ($.trim($(this).text()) == 'MOBI' || $.trim($(this).text()) == 'PDF' || $.trim($(this).text()) == 'EPUB') { | |
$('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