Created
March 15, 2018 09:29
-
-
Save kaskavalci/b08a980f2b10b1a2be21af4a968fecec to your computer and use it in GitHub Desktop.
humble bundle download all
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
// 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