Last active
May 30, 2016 21:53
-
-
Save floscr/f5df5dcc7f3431c660055bbd1018a827 to your computer and use it in GitHub Desktop.
Calculate the total amount on highscore.money
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
[].slice.call(document.querySelectorAll('table tr td:nth-child(2)')).reduce((total, num) => { | |
let numValue = parseInt(num.innerHTML.replace('$', '')); | |
return total + numValue; | |
}, 0) + '$'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy this into your console, only tested on chrome 😉