Skip to content

Instantly share code, notes, and snippets.

@withgod
Created November 29, 2012 17:55
Show Gist options
  • Save withgod/4170765 to your computer and use it in GitHub Desktop.
Save withgod/4170765 to your computer and use it in GitHub Desktop.
javascript:(function(){var a=0,b=0,c=0,d=0,e=0;$("tr[data-link-to]").each(function(){var f=$(this);var g=$(f.find("td"));if($(g[2]).find("a").hasClass("won")){d++}else{e++}var h=$(g[5]).find("div").first().text().replace(/\s+/,"").split("/");a+=parseInt(h[0]);b+=parseInt(h[1]);c+=parseInt(h[2])});var f=Math.round(a/b*100)/100;var g=Math.round(c/b*100)/100;var h="k/d: "+f+"\n";h+="a/d: "+g+"\n";h+="win rate:"+Math.round(d/(d+e)*100)+"%";alert(h)})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment