Last active
April 22, 2020 03:25
-
-
Save mlueckl/9b34e7154a97db2f77507c3d6aec9d10 to your computer and use it in GitHub Desktop.
HumbleBundle download all EBooks
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
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); |
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