Skip to content

Instantly share code, notes, and snippets.

@vndmtrx
Created August 2, 2012 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vndmtrx/3239791 to your computer and use it in GitHub Desktop.
Save vndmtrx/3239791 to your computer and use it in GitHub Desktop.
Calculando Custo total de jogos da Steam
transacoes = document.getElementsByClassName("transactionRowPrice");
total = 0;
for (i = 0; i < transacoes.length; i++) {
custo = Number(transacoes[i].innerText.substr(1));
if (custo) {
total += custo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment