Skip to content
I Hate GitHub White Space

I Hate GitHub White Space

by Hunter Ham Digital
5.0
4 reviews
15
users
Published
April 9, 2024

Screenshots

I Hate GitHub White Space screenshot 1

Description

GitHub's website doesn't have a way to persist their "hide white space" setting in the code diff view. This slows down workflow when reviewing code changes. This applies to... 1. Pull Request file diffs pages 2. Commit diffs pages The extension detects if the white space setting is toggled by checking for the `w` in the URL query/search parameters. If the query param is not set to anything, the extension adds w=1 (hide white space). By checking for the existence of the `w` param, it will allow users to have w=0 on purpose if they want to purposely show white space. ========== There is an existing extension for this, however, I believe they're not secure enough. My extension only uses a Chrome content script (scripts that only run in the context of one tab/page) and is limited only to https://github.com/* The URL check function runs when you navigate to a page on github.com and when the URL changes within the current page. ========== GitHub Repo: https://github.com/hmh84/i-hate-github-whitespace Issues and Feature Requests: https://github.com/hmh84/i-hate-github-whitespace/issues
Add to Chrome

Quick Info

Version
1.2
Size
29.36KiB
Price
Free
Type
Extension

Languages

English