Skip to content

Instantly share code, notes, and snippets.

@bl4ckb1rd
Forked from graymouser/hb_all_books_dl.js
Created July 19, 2018 15:26
Show Gist options
  • Select an option

  • Save bl4ckb1rd/069d298bab70fc5ddd5352dfbe74d061 to your computer and use it in GitHub Desktop.

Select an option

Save bl4ckb1rd/069d298bab70fc5ddd5352dfbe74d061 to your computer and use it in GitHub Desktop.

Revisions

  1. @graymouser graymouser created this gist Feb 28, 2016.
    11 changes: 11 additions & 0 deletions hb_all_books_dl.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    /*
    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');
    }
    });