Skip to content

Instantly share code, notes, and snippets.

@FrostBird347
Last active August 28, 2023 10:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save FrostBird347/422259bded602f0a39a419039baad28b to your computer and use it in GitHub Desktop.
Reset all achievement slots for the achievement showcase on a steam profile
//Credit: https://steamcommunity.com/discussions/forum/1/666826703364808594/#c622954302088767800
//Tested using steam with the "-dev" launch argument (https://developer.valvesoftware.com/wiki/Command_Line_Options#Steam)
//After running this script, you must save and reload the page to see any changes
for (var i = 0; i < document.getElementsByClassName("profile_customization_header").length; i++) {
var CurrentHeader = document.getElementsByClassName("profile_customization_header")[i];
if (CurrentHeader.textContent == "Achievement Showcase") {
var ShowcaseBlock = CurrentHeader.parentElement.children[1].children[0].children[0];
for (var ii = 0; ii < ShowcaseBlock.children.length; ii++) {
if (ShowcaseBlock.children[ii].classList.contains("showcase_slot") && !ShowcaseBlock.children[ii].classList.contains("openslot")) {
ShowcaseBlock.children[ii].children[2].value = 0;
ShowcaseBlock.children[ii].children[3].value = 0;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment