Last active
August 29, 2015 14:19
-
-
Save MarkusH/3c6c9b8627a827e23989 to your computer and use it in GitHub Desktop.
Github Pull-Request line length indicator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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