Last active
March 22, 2023 01:37
-
-
Save fassetar/47a435da0ebc5267c2447712ae3b9531 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//https://steamcommunity.com/id/{users}/stats/{game}/?tab=achievements | |
var listtoRemove = []; | |
var input = "Halo 3:"; | |
for (i = 0; i < document.getElementsByClassName("achieveRow").length; i++) { | |
var current = document.getElementsByClassName("achieveRow")[i]; | |
if(current.attributes[0].value == '{"autoFocus":true,"focusable":true,"clickOnActivate":true}') | |
listtoRemove.push(current); | |
else if(current.children[1].children[0].children[1].outerText.search("Halo 3:") < 0) | |
listtoRemove.push(current); | |
} | |
for (z = 0; z < listtoRemove.length; z++) { | |
//Achievement Remove | |
//console.log(listtoRemove[z]); | |
listtoRemove[z].remove(); | |
} | |
console.log("Achievements Left: for "+ input + " " + document.getElementsByClassName("achieveRow").length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment