1. ⌘+D to make a new bookmarklet in your bookmarks toolbar
2. Name it whatever, like "Hide PR Whitespace"
4. Click it whenever GitHub is showing you whitespace diff
Ideally, everyone in your repo will end up pushing pre-linted code, which should align styling and white-space issues. In reality this won't always happen, and seeing white space in the diff can be annoying and make the PR looks more massive than it is.
GitHub recently introduced a Pull Request level setting that gets remembered for the life of the PR that allows whitespace to be hidden. This is a pretty useless feature for most of us since it requires 3 clicks to enable and must be done on every new PR.
The other option is to manually append
Caveat: this won’t work if there are existing params on the URL, since subsequent params require the
& rather than the initial param’s