Skip to content

Instantly share code, notes, and snippets.

@MarkusH
Last active August 29, 2015 14:19
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 MarkusH/3c6c9b8627a827e23989 to your computer and use it in GitHub Desktop.
Save MarkusH/3c6c9b8627a827e23989 to your computer and use it in GitHub Desktop.
Github Pull-Request line length indicator
/**
* Add a new bookmark with this content.
**/
javascript:$('body').append($('<div style="border: 1px solid red; position: fixed; top: 10px; left: 10px; height: 25px; min-width: 50px" id="line-length"></div>'));$('.blob-code.blob-code-addition').on('mouseover', function(event) {$('#line-length').text(event.target.innerText.length - 1)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment