Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created March 15, 2018 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaskavalci/b08a980f2b10b1a2be21af4a968fecec to your computer and use it in GitHub Desktop.
Save kaskavalci/b08a980f2b10b1a2be21af4a968fecec to your computer and use it in GitHub Desktop.
humble bundle download all
// Execute this from browser console
// Tested on Chrome. Firefox does not work. Even pop-up blocker is disabled it still blocks opening new windows.
// Things to do:
// Enable option Download PDF files instead of automatically opening them in Chrome in chrome
// Allow popups
Array.from(document.querySelectorAll('a')).filter(a => a.hostname.startsWith('dl.')).map((v)=>{v.setAttribute('target','_blank'); v.classList.remove('a'); return v}).forEach(v=>{window.open(v.href,'_blank'); console.log(v.href)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment