Skip to content

Instantly share code, notes, and snippets.

@danbeam
Created June 13, 2013 23:50
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 danbeam/5778407 to your computer and use it in GitHub Desktop.
Save danbeam/5778407 to your computer and use it in GitHub Desktop.
bookmarklet to calculate lines of code changed in a chromium code review
javascript:var t=0;Array.prototype.forEach.call(document.querySelectorAll('[name=patch] td:nth-of-type(7)'),function(e){t+=eval(e.textContent.replace(/[lines ,]/g,'').replace('-','+'));});alert(total);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment