Humble Bundle Bookmarklet

I’ve got too much Humble Bundles. Especially with books it’s simply impossible to download them all. Browsing and downloading online doesn’t work well either.

Today i purchased the Humble Make: Book Bundle. Currently it consists of 13 books in 3 formats (PDF, Mobi, EPub). That’s 39 clicks to download.

HumbleBundleLinks_01

Thus i wrote a bookmarklet to extract all the download links. Simply copy / paste the links into the downloader of your choice (wget, jDownloader, Synology DownloadStation, …).

How does it work?
1. In Firefox right-click on your Booksmarks Bar- Select “New Bookmark”
2. Name: “Humble Links”
3. Location: <Paste the Javascript code below>

HumbleBundleLinks_02

4. Go to the download page of your bundle
5. Click the bookmarklet
6. A window opens with the links to the media
7. Copy / paste the links into the downloader of your choice

All links:
javascript:var a = "";
$("a[data-web]").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

All .pdf:
javascript:var a = "";
$("a[data-web][href*='.pdf']").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

All .mobi:
javascript:var a = "";
$("a[data-web][href*='.mobi']").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

All .epub:
javascript:var a = "";
$("a[data-web][href*='.epub']").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

In the long term i would like to see a syncing feature from Humble Bundle.