Skip to content

Instantly share code, notes, and snippets.

@XVicarious
Created March 11, 2016 21:46
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 XVicarious/3d56ff56c4f79869a008 to your computer and use it in GitHub Desktop.
Save XVicarious/3d56ff56c4f79869a008 to your computer and use it in GitHub Desktop.
Just pop this in a bookmarklet and fire it off on https://pucatrade.com/trades/past/received or https://pucatrade.com/trades/past/sent to see your gains.
javascript:(function(){var total=0;$($("tr td:nth-child(5) div span").get().reverse()).each(function(){var thisT=$(this).text().substring(2);thisT=thisT.substring(0,thisT.length-1);total+=Number.parseInt(thisT);});alert(total);})();
// The lower the number on /sent the better (this means negative!)
// The higher the number on /received the better (postitive)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment