Skip to content

Instantly share code, notes, and snippets.

@x35a
Last active September 23, 2018 13:05
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 x35a/c1e26acff72c6f92203c28b9289eaf53 to your computer and use it in GitHub Desktop.
Save x35a/c1e26acff72c6f92203c28b9289eaf53 to your computer and use it in GitHub Desktop.
steam total
total=0, document.querySelectorAll('.ellipsis.hours_played').forEach( node => node.innerHTML.match(/\d+[.,]?\d+/) ? total += parseFloat( node.innerHTML.match(/\d+[.,]?\d+/)[0] ) : ''), console.log(total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment