Created
August 2, 2012 19:04
-
-
Save vndmtrx/3239791 to your computer and use it in GitHub Desktop.
Calculando Custo total de jogos da Steam
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
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