Last active
August 29, 2015 14:23
-
-
Save lukyth/b594e6327d2b9251a082 to your computer and use it in GitHub Desktop.
steam playtime finder
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
var time = 0, | |
games = document.querySelectorAll(".gameListRow h5"), | |
text; | |
for (var i = 0, len = games.length; i < len; i++) { | |
text = games[i].innerHTML; | |
if(text != "") { | |
time += parseFloat(text.replace(",", "").split(" ")[0]); | |
} | |
} | |
console.log(time); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment