Created
February 27, 2018 05:25
-
-
Save jaidetree/f315002f2e362fd5ee33d83318f37284 to your computer and use it in GitHub Desktop.
Open each humble bundle download button link in a new tab. Open the console on a humble bundle purchase page and paste this script.
This file contains hidden or 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
| function getURL (a) { | |
| return a.href; | |
| } | |
| function openLink (url, i) { | |
| window.open(url, `_book_${i}`); | |
| window.confirm('Ready to continue?'); | |
| } | |
| Array | |
| .from( | |
| document | |
| .querySelectorAll('.download .a')) | |
| .map(getURL) | |
| .forEach(openLink) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment