Skip to content

Instantly share code, notes, and snippets.

@luluhoc
Last active November 5, 2021 23:13
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 luluhoc/9eba34d1d06f0395f3254d8c26513bca to your computer and use it in GitHub Desktop.
Save luluhoc/9eba34d1d06f0395f3254d8c26513bca to your computer and use it in GitHub Desktop.
Steam Workshop Collection link grabber
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;
}
@luluhoc
Copy link
Author

luluhoc commented Nov 5, 2021

Super simple script to grab all links from collection to feed it to workshop downloader :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment