Last active
August 28, 2023 10:58
Star
You must be signed in to star a gist
Reset all achievement slots for the achievement showcase on a steam profile
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
//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