Created
December 28, 2020 01:46
-
-
Save h4de5/0f5b145dd04f8444b8b95e7ed7776d32 to your computer and use it in GitHub Desktop.
Humble Bundle Download Link extraction
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
// open download page after purchase | |
// type into web developer console (F12): | |
let x = ''; | |
document.querySelectorAll("body > div.page-wrap > div.base-main-wrapper > div.inner-main-wrapper > div:nth-child(5) > div > div.js-gamelist-holder > div.js-all-downloads-holder > div > div > div > div > div.js-download-rows.download-rows > div > div > div.downloads > div > div > div > span > a").forEach(n => x += n.href | |
+ "\n", x) | |
// will print out all links in a separate row | |
console.log(x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment