Remove generated files from GitHub line counts

Latest Version

Version
1.7.1
Update
October 19, 2024
Size
123KiB
Developer
Category
Users
162
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
See more

GitHub: Better Line Counts Extension

Isn't it annoying when you open a small PR, but when you look at the diff, it's +2000 -16 because you installed a new library? Or what if you had to review that PR, don't line counts like that dissuade you from starting the review?

In reality, lots of code is generated nowadays and GitHub's line counts are not representative of a PR's true size.

This extension subtracts generated files from the total line counts, giving you a better idea of how big a PR really is. That's it. That's all it does.

Generated files are detected from the branch's root .gitattributes file. See GitHub's docs to learn how to mark a file as generated: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

For a simple example, checkout this extension's .gitattributes file! https://github.com/aklinker1/github-better-line-counts/blob/main/.gitattributes

---

The extension is open source. Feel free to contribute if you have any ideas or just star it 😀
https://github.com/aklinker1/github-better-line-counts
Read more

Source Manifest.json

{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version":3,
"name":"GitHub: Better Line Counts",
"description":"Remove generated files from GitHub line counts",
"version":"1.7.1",
"icons":{"16":"icon/16.png",
"32":"icon/32.png",
"48":"icon/48.png",
"96":"icon/96.png",
"128":"icon/128.png"},
"permissions":["storage"],
"background":{"service_worker":"background.js"},
"options_ui":{"open_in_tab":false,
"page":"options.html"},
"content_scripts":[{"matches":["*://*.github.com/*"],
"run_at":"document_end",
"css":["content-scripts/content.css"],
"js":["content-scripts/content.js"]}]}
Read more

How to download and manually install GitHub: Better Line Counts extension for Chrome

Looking for a way to install GitHub: Better Line Counts 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 GitHub: Better Line Counts extensions manually, this article outlines two simple methods to effortlessly install GitHub: Better Line Counts extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download GitHub: Better Line Counts extension and manually install through Drag &Drop

If you ever need to manually install a GitHub: Better Line Counts 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 GitHub: Better Line Counts Extension by clicking the "Download CRX" button on the website.

Look for the GitHub: Better Line Counts extension you wish to install. Go to the website and download the GitHub: Better Line Counts extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for GitHub: Better Line Counts 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 GitHub: Better Line Counts 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 GitHub: Better Line Counts extension for Chrome and install in Developer Mode

This is another method to install GitHub: Better Line Counts 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 GitHub: Better Line Counts extension file

Select and download the GitHub: Better Line Counts 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 GitHub: Better Line Counts 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 GitHub: Better Line Counts 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 GitHub: Better Line Counts 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 GitHub: Better Line Counts extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Github JSON Editor Extension · Productivity 162 0 ★ 517KiB

icon

HintEd Smart Manuals Editor Extension · Productivity 162 1 ★ 6.36MiB

icon

ARGOS DOM Extension · Developer Tools 162 0 ★ 67.96KiB

icon

LumoSearch: Airbnb Review Summary & Search Extension · Productivity 162 2 ★ 49.99KiB

icon

Michael's Upgrade for TrakED Extension · Productivity 162 0 ★ 410KiB

icon

Tanuki Utilities Extension · Developer Tools 162 1 ★ 25.43KiB

icon

GitHub LOC Extension · Developer Tools 162 3 ★ 733KiB

icon

Space Bubbles Shooter Extension · Fun 162 0 ★ 7.27MiB

icon

Add to Benevolist.org Button Extension · Shopping 162 0 ★ 26.28KiB

icon

Left Unread Extension · Productivity 162 4 ★ 25.15KiB

icon

Passive Aggressive Email Translator Extension Extension · Fun 162 0 ★ 143KiB

icon

Thymeline Extension · Productivity 162 1 ★ 230KiB

icon

Hive - Bookmarks Extension · Productivity 162 65 ★ 97.95KiB

icon

Agfa JIRA Extension · Productivity 162 2 ★ 22.96KiB

icon

Follows You GitHub Extension · Social & Communication 162 0 ★ 11.25KiB

icon

GitHub Minesweeper Extension · Fun 162 8 ★ 13.37KiB

icon

ChatGPT Recall Prompts Extension · Productivity 162 3 ★ 37.64KiB

icon

AuthentiSci Extension · News & Weather 162 0 ★ 160KiB

icon

TruthGPT - No Hallucinations, only Truth Extension · Productivity 162 3 ★ 2.73MiB

icon

Banner Animation Control - Dev Extension · Developer Tools 162 13 ★ 152KiB

icon

Drag GPT - Start AI Easily with Drag! Extension · Productivity 162 3 ★ 273KiB

icon

Ducking Extension - Ducking.id Extension · Productivity 162 13 ★ 1.88MiB

icon

Load Background Tabs Lazily Extension · Productivity 162 5 ★ 77.7KiB

icon

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

User reviews

icon

Jerry Green (ID: 000000fc98131061) Voted 5 ★ - Updated 07/16/2023 Such a neat little change to Github I wanted.