Skip to content

Instantly share code, notes, and snippets.

@fassetar
Last active March 22, 2023 01:37
Show Gist options
  • Save fassetar/47a435da0ebc5267c2447712ae3b9531 to your computer and use it in GitHub Desktop.
Save fassetar/47a435da0ebc5267c2447712ae3b9531 to your computer and use it in GitHub Desktop.
//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