Last active
November 5, 2021 23:13
-
-
Save luluhoc/9eba34d1d06f0395f3254d8c26513bca to your computer and use it in GitHub Desktop.
Steam Workshop Collection link grabber
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
const grab = () => { | |
const collection = document.querySelectorAll('.collectionChildren > .collectionItem'); | |
let arr = []; | |
for (let i = 0; i < collection.length; i++) { | |
let link = collection[i].querySelector('.workshopItem > a').href; | |
arr.push(link); | |
} | |
return arr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Super simple script to grab all links from collection to feed it to workshop downloader :)