Skip to content

Instantly share code, notes, and snippets.

@Gmousse
Created August 30, 2018 17:09
Show Gist options
  • Save Gmousse/4b751408a606acadcdeb89edd82732eb to your computer and use it in GitHub Desktop.
Save Gmousse/4b751408a606acadcdeb89edd82732eb to your computer and use it in GitHub Desktop.
Download all humble bundle links
/**
* Download all Humble bundle items of a specific type (eg: EPUB).
* @param {String} innerText The tag of the items to download.
*/
function downloadAllBundleItems(innerText) {
return Array.from(document.getElementsByTagName('a')).filter(x => x.innerText == innerText).forEach(x => window.open(x.href));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment