Automatically adds the hide white space filter to the GitHub diff view.

Latest Version

Version
1.2
Update
April 9, 2024
Size
29.36KiB
Developer
Category
Users
5
Rating
1 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
See more

I Hate GitHub White Space Extension

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
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx","manifest_version": 3,"name": "I Hate GitHub White Space","version": "1.2","description": "Automatically adds the hide white space filter to the GitHub diff view.","icons": {"16": "icon-16.png","48": "icon-48.png","128": "icon-128.png"},"host_permissions": ["https://github.com/*"],"content_scripts": [{"matches": ["https://github.com/*"],"js": ["content.js"]}],"content_security_policy": {"extension_pages": "default-src 'self'"}}
Read more

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

icon

Old School GitHub Extension · Developer Tools 5 11 ★ 18.47KiB

icon

DotGit Extension · Developer Tools 5 12 ★ 147KiB

icon

백준허브(BaekjoonHub) Extension · Productivity 5 26 ★ 222KiB

icon

Refined GitHub Extension · Developer Tools 5 213 ★ 572KiB

icon

GfG to GitHub Extension · Developer Tools 5 17 ★ 726KiB

icon

Le Git Graph - Commits Graph for GitHub Extension · Productivity 5 29 ★ 814KiB

icon

tabVertikal - vertical tabs Extension · Productivity 5 21 ★ 157KiB

icon

LeetHub v3 Extension · Productivity 5 12 ★ 778KiB

icon

UX Enhancer for GitLab Extension · Developer Tools 5 7 ★ 115KiB

icon

Lovely forks Extension · Developer Tools 5 13 ★ 945KiB

icon

CookieConsentCrusher for Stackoverflow Extension · Productivity 5 0 ★ 1.14MiB

icon

Useful Forks Extension · Developer Tools 5 8 ★ 13.4KiB

icon

Github Active Forks Extension · Developer Tools 5 4 ★ 170KiB

icon

Hide Verified Twitter Users Extension · Accessibility 5 1 ★ 7.72KiB

icon

LeetHub v2 Extension · Productivity 5 64 ★ 257KiB

icon

Git Well Soon Extension · Developer Tools 5 4 ★ 9.78KiB

icon

GitHub Whitespace Extension · Developer Tools 5 10 ★ 15.73KiB

icon

LeetHub Extension · Productivity 5 3 ★ 8.2MiB

icon

GitHub Code Owners Filter Extension · Developer Tools 5 2 ★ 156KiB

icon

GitHub Merge Guardian Extension · Developer Tools 5 0 ★ 306KiB

icon

No Cookie Banners Extension · Productivity 5 1 ★ 111KiB

icon

Github1s Quickswitch Extension · Developer Tools 5 1 ★ 9.12KiB

icon

Code Note Extension · Developer Tools 5 1 ★ 671KiB

icon

GitHub File Diff Extension · Developer Tools 5 0 ★ 354KiB