Skip to content

Instantly share code, notes, and snippets.

@Hamatti
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save Hamatti/6e0de4df684b2b37479e to your computer and use it in GitHub Desktop.

Select an option

Save Hamatti/6e0de4df684b2b37479e to your computer and use it in GitHub Desktop.
A JS Bookmarklet to show difference in lines of codes for a BitBucket pull request
javascript:(function(){alert(([].slice.call(document.querySelectorAll('.lines-added, .lines-removed')).reduce(function (a, el){return a + Number(el.innerHTML);},0)+' loc').replace(/^(?!-)/, '+'))})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment