I have updated this as of 12/27/2023 as a user came across this page and informed me the script I wrote is not long working. I have updated the script to work again.
Log into your steam account, navigate to your profile page and then the “Games” page and Select “All Games”. Open up the console (F12) and run the following bit of code:
// Open the console on the desired Steam profile page and run this script:
// Select all elements with the game name class
var gameNameElements = document.getElementsByClassName('gameslistitems_GameName_22awl');
var gameNames = '';
// Iterate over all selected elements and concatenate their text content
for (var i = 0; i < gameNameElements.length; i++) {
gameNames += (gameNameElements[i].innerText + '\n');
}
// Output the result
console.log(gameNames);
The above console script will generate the list same as before.
Deprecated - 2017 Version
I wanted to populate a list of all my Steam games for export into a txt file or csv. I came across this bit of code out on the net somewhere and can’t seem to find where I grabbed it from. I did not write this snippet, but i can verify that is does work.
Log into your steam account, navigate to your profile page and then the “Games” page. Open up the console (F12) and run the following bit of code:
var names = document.body.getElementsByClassName('gameListRowItemName'); var namesString = ''; for (var i = 0; i < names.length; i++) namesString += (names[i].innerText + '\n')
You will get a result similar to as follows: