Skip to content

Instantly share code, notes, and snippets.

@jaidetree
Created February 27, 2018 05:25
Show Gist options
  • Select an option

  • Save jaidetree/f315002f2e362fd5ee33d83318f37284 to your computer and use it in GitHub Desktop.

Select an option

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.
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