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
0 ★
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",\t"manifest_version": 3,\t"name": "I Hate GitHub White Space",\t"version": "1.2",\t"description": "Automatically adds the hide white space filter to the GitHub diff view.",\t"icons": {\t\t"16": "icon-16.png",\t\t"48": "icon-48.png",\t\t"128": "icon-128.png"\t},\t"host_permissions": ["https://github.com/*"],\t"content_scripts": [\t\t{\t\t\t"matches": ["https://github.com/*"],\t\t\t"js": ["content.js"]\t\t}\t],\t"content_security_policy": {\t\t"extension_pages": "default-src 'self'"\t}}
Read more

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