Skip to content

Instantly share code, notes, and snippets.

@mlueckl
Last active April 22, 2020 03:25
Show Gist options
  • Save mlueckl/9b34e7154a97db2f77507c3d6aec9d10 to your computer and use it in GitHub Desktop.
Save mlueckl/9b34e7154a97db2f77507c3d6aec9d10 to your computer and use it in GitHub Desktop.
HumbleBundle download all EBooks
var pool = document.getElementsByClassName('subproducts-holder');
pool = pool[0].children;
var i = 0;
var download = setInterval(function(){
if(i < pool.length){
pool[i].click();
var h = document.getElementsByClassName('js-button-holder');
if(h.length > 0){
h = h[0].children;
if(h.length == 3){
// CHANGE DOWNLOAD TYPE | h[0] = MOBI - h[1] = EPUB - h[2] = PDF
h[2].children[0].click()
}
}
i++;
}else{
clearInterval(download);
}
// CHANGE TIME DELAY BETWEEN DOWNLOADS. 2000 = 2 SECONDS
}, 2000);
@mlueckl
Copy link
Author

mlueckl commented Apr 22, 2020

  • Go to your HumbleBundle Library
  • Open your Browsers Console - How to
  • Paste & Enter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment