GitHub Pro Tip: Hide red lines in a diff
I was looking at a diff on GitHub today and said to myself, “This would be so much easier to review if all the red lines were hidden.”
So I pulled open the console and wrote a little jQuery:
It can take a little time to run depending on the number of lines it needs to hide. The
.length is there just to stop the console from showing you all of the elements it toggled.
I’ve given up on actually making an easy to install bookmarklet in my wordpress, something keeps converting all my links to
If you want to bookmark it – here is the code for a bookmarklet: