Automatically adds the hide white space filter to the GitHub diff view.
I Hate GitHub White Space Extension
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
Source Manifest.json
How to download and manually install I Hate GitHub White Space extension for Chrome
Looking for a way to install I Hate GitHub White Space extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.
However, you may need to install I Hate GitHub White Space extensions manually, this article outlines two simple methods to effortlessly install I Hate GitHub White Space extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.
Method 1: Download I Hate GitHub White Space extension and manually install through Drag &Drop
If you ever need to manually install a I Hate GitHub White Space extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.
Step 1: Download the I Hate GitHub White Space Extension by clicking the "Download CRX" button on the website.
Look for the I Hate GitHub White Space extension you wish to install. Go to the website and download the I Hate GitHub White Space extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for I Hate GitHub White Space extension that contains all the data.
Step 2: Extract &Arrange Files
Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.
Step 3: Go to the Chrome Extensions Page
Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.
Step 4: Drag and Drop the Extension
Now, go to the folder where you extracted the I Hate GitHub White Space extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.
Step 5: Complete the Installation
Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.
Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.
Method 2: Download I Hate GitHub White Space extension for Chrome and install in Developer Mode
This is another method to install I Hate GitHub White Space extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.
Step 1: Download the I Hate GitHub White Space extension file
Select and download the I Hate GitHub White Space extension by clicking the 'Download CRX' button on the website.
Step 2: Extract the downloaded contents
Convert the file to a ZIP file if it is in CRX format then extract the I Hate GitHub White Space extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your I Hate GitHub White Space extension running.
Step 3: Open Chrome Extension Setting Page
In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.
Step 4: Enable Developer Mode
After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.
Step 5: Load the Unpacked Extension
Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."
Step 6: Select the Extension Folder
Once the pop-up opens upon clicking Load unpacked, select the I Hate GitHub White Space extension directory and click on the "Select Folder "button.
Step 7: Confirm and Install
After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.
Conclusion
Here we've made a step-by-step guide on How to manually install I Hate GitHub White Space extension in 2 ways. We hope this guide proves helpful.
Similar Extensions
Old School GitHub 5 11 ★ 18.47KiB
DotGit 5 12 ★ 147KiB
백준허브(BaekjoonHub) 5 26 ★ 222KiB
Refined GitHub 5 213 ★ 572KiB
GfG to GitHub 5 17 ★ 726KiB
Le Git Graph - Commits Graph for GitHub 5 29 ★ 814KiB
tabVertikal - vertical tabs 5 21 ★ 157KiB
LeetHub v3 5 12 ★ 778KiB
UX Enhancer for GitLab 5 7 ★ 115KiB
Lovely forks 5 13 ★ 945KiB
CookieConsentCrusher for Stackoverflow 5 0 ★ 1.14MiB
Useful Forks 5 8 ★ 13.4KiB
Github Active Forks 5 4 ★ 170KiB
Hide Verified Twitter Users 5 1 ★ 7.72KiB
LeetHub v2 5 64 ★ 257KiB
Git Well Soon 5 4 ★ 9.78KiB
GitHub Whitespace 5 10 ★ 15.73KiB
LeetHub 5 3 ★ 8.2MiB
GitHub Code Owners Filter 5 2 ★ 156KiB
GitHub Merge Guardian 5 0 ★ 306KiB
No Cookie Banners 5 1 ★ 111KiB
Github1s Quickswitch 5 1 ★ 9.12KiB
Code Note 5 1 ★ 671KiB
GitHub File Diff 5 0 ★ 354KiB