Skip to content

Instantly share code, notes, and snippets.

@GauntletWizard
Created October 16, 2020 10:16
Show Gist options
  • Save GauntletWizard/902d6ccce5469131a66d8243ebe354bd to your computer and use it in GitHub Desktop.
Save GauntletWizard/902d6ccce5469131a66d8243ebe354bd to your computer and use it in GitHub Desktop.
Steam Cost history
sum = 0
costs = Array.from(document.getElementsByClassName("wht_total")).slice(1)
for (i of costs) {
sum += parseInt(i.textContent.trim().replace("$", "").replace(".", ""))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment