Skip to content

Instantly share code, notes, and snippets.

@davewongillies
Last active March 22, 2018 03:30
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 davewongillies/62283006b04d11d342ca8333ed353144 to your computer and use it in GitHub Desktop.
Save davewongillies/62283006b04d11d342ca8333ed353144 to your computer and use it in GitHub Desktop.
Disable whitespace in Github Pull Requests bookmarklet

Create a bookmark with the following code for the URL:

javascript:function ghnwsp()%7Bwindow.location%3Dwindow.location%2B%27%3Fw%3D1%27%3B%7Dghnwsp()%3Bvoid(0)

And then click it whenever you're looking at diffs to disable whitespace lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment