Skip to content

Instantly share code, notes, and snippets.

@mikeyjk
Last active May 20, 2023 14:44
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 mikeyjk/b202fc41effc22b17140a86abbfe8e8a to your computer and use it in GitHub Desktop.
Save mikeyjk/b202fc41effc22b17140a86abbfe8e8a to your computer and use it in GitHub Desktop.
log all steam games from steam web library
// i just wanna see all my games in plain text format
document.querySelectorAll('[class^="gameslistitems_GameName_"]').forEach(e => { console.log(e.text); });
// or maybe
var games = '';
document.querySelectorAll('[class^="gameslistitems_GameName_"]').forEach(g => {
games = games === '' ? games = g.text : games += ', ' + g.text;
});
console.log(games);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment