Displays github repository file and folder sizes. Supports GraphQL and REST api modes. Also mobile friendly.

Latest Version

Version
0.1.2
Update
February 6, 2024
Size
195KiB
Developer
Category
Users
26
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
See more

Github Aid - displays repo file sizes Extension

This is an open source extension that lets you view the sizes of Github repository content. In the future, it will also let you download multiple files from within your browser.


Features:
- Preview a Repository's entire Disk Space usage (which includes git history)
- Preview the sizes of individual files and folders under the directory
- Ability to choose between github's REST api, or GraphQL api
- Ability to set an Access Token to view your private repository stats
- Buttons that are added to the page are customizable (and can be turned off)
- Display is optimized for both mobile and desktop browsers
- Open source: checkout the source code on github: https://github.com/omar-azmi/github_aid_ts

Planned features:
- Add support for selecting files and folders, then queuing them for download in a \".tar.gz\" archive
- Add support for defaulting to REST api and disabling access token in Incognito mode

Permissions required:
- Access to running background javascript in all github.com pages
- Access to storage for storing your access token, and saving your configuration settings


Problems you may encounter:

1) The buttons are not appearing
- Refresh the page. Github is an SPA (single-page application), so there are times when the background script does not get reloaded upon navigation from one page to another.
- Make sure that you did not disable all buttons in the option page's layout section. If you're having touble, consider clicking on the red \"reset\" button to clear any misconfigurations and return to factory settings.
- Make sure that storage permission has been granted to this extension, otherwise the script will fail to load the default configuration, and terminate fatally.

2) One of the buttons flashes in red, and nothing happens.
- This is because the request query sent to github's server has failed, possibly due to one of the following reasons:
- Github's server is overloaded, and it decided to reject your request (quite common). In this case, try switching your api method in the options page, and reload your webpage and retry.
- You are viewing a private repo, and the access token that you have (or may lack) is not authorized for pulling up data of that private repository
- Your Github Access Token key is invalid, or has expired
- You (and your Token) have reached their per hour request limit, or that you've been sending too many requests too quickly. The request data rate for github is: 50 requests per hour for non-authorized tokenless users, and 5000 per hour for authorized users. Moreover, the REST api in this extension used 2 requests for fetching file and folder sizes
- There might be a bug in the code, or github's api might have changed. In that case, I'd appreciate if you could open up an issue on github: https://github.com/omar-azmi/github_aid_ts/issues


Guide on how to get a Github Access Token:

1) First of all, you'll need to be logged into your github account.
2) Navigate to github's \"Generate new token (classic)\" page: https://github.com/settings/tokens/new
3) Set an \"Expiration\" date, (you'll probably want to choose \"No expiration\")
4) In the \"Select scopes\" section, under the \"repo\" checkbox:
- enable only the \"public_repo\" checkbox if you will NOT be viewing your private repository's stats
- enable the whole \"repo\" group checkbox otherwise
5) Scroll to the bottom and click on the \"Generate token\" button
6) You will now be presented with the access token. Make sure to copy and save it securely! This is a one time preview of you key, and it disappear forever after you've closed the dialog
7) Paste the token into this browser extension

For a visual guide, see one of:
- https://www.geeksforgeeks.org/how-to-generate-personal-access-token-in-github/
- https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

But remember NOT to check any scope boxes besides the \"repo\" one.
Having anything else checked is dangerous if your access key gets leaked from your browser storage, and someone decides to maliciously delete your projects.
Read more

Source Manifest.json

{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version":3,
"name":"Github Aid - displays repo file sizes",
"short_name":"Github Aid",
"content_scripts":[{"matches":["*://github.com/*"],
"js":["./js/content_script_extension_adapter.js"]}],
"web_accessible_resources":[{"resources":["*.js"],
"matches":["*://github.com/*"]}],
"browser_specific_settings":{"gecko":{"id":"[email protected]"}},
"icons":{"16":"./icon/eldercat_16.png",
"32":"./icon/eldercat_32.png",
"48":"./icon/eldercat_48.png",
"64":"./icon/eldercat_64.png",
"128":"./icon/eldercat_128.png",
"256":"./icon/eldercat_256.png"},
"options_ui":{"page":"./html/option.html",
"open_in_tab":false},
"permissions":["storage"],
"content_security_policy":{"extension_pages":"script-src 'self'; object-src 'self';"},
"action":{"default_icon":{"16":"./icon/eldercat_16.png",
"32":"./icon/eldercat_32.png",
"48":"./icon/eldercat_48.png",
"64":"./icon/eldercat_64.png",
"128":"./icon/eldercat_128.png",
"256":"./icon/eldercat_256.png"},
"default_popup":"./html/option.html",
"default_title":"Github Aid"},
"author":"Omar Azmi",
"version":"0.1.2",
"description":"Displays github repository file and folder sizes. Supports GraphQL and REST api modes. Also mobile friendly.",
"homepage_url":"https://github.com/omar-azmi/github_aid_ts"}
Read more

How to download and manually install Github Aid - displays repo file sizes extension for Chrome

Looking for a way to install Github Aid - displays repo file sizes 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 Aid - displays repo file sizes extensions manually, this article outlines two simple methods to effortlessly install Github Aid - displays repo file sizes extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Github Aid - displays repo file sizes extension and manually install through Drag &Drop

If you ever need to manually install a Github Aid - displays repo file sizes 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 Aid - displays repo file sizes Extension by clicking the "Download CRX" button on the website.

Look for the Github Aid - displays repo file sizes extension you wish to install. Go to the website and download the Github Aid - displays repo file sizes extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Github Aid - displays repo file sizes 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 Aid - displays repo file sizes 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 Aid - displays repo file sizes extension for Chrome and install in Developer Mode

This is another method to install Github Aid - displays repo file sizes 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 Aid - displays repo file sizes extension file

Select and download the Github Aid - displays repo file sizes 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 Aid - displays repo file sizes 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 Aid - displays repo file sizes 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 Aid - displays repo file sizes 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 Aid - displays repo file sizes extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Download All Images Extension · Photos 26 242 ★ 153KiB

icon

Chrome extension source viewer Extension · Developer Tools 26 422 ★ 227KiB

icon

GitKraken Extension · Developer Tools 26 14 ★ 1.63MiB

icon

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

icon

Tab Session Manager Extension · Productivity 26 336 ★ 733KiB

icon

Talend API Tester - Free Edition Extension · Developer Tools 26 4243 ★ 5.09MiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 26 1227 ★ 876KiB

icon

GitZip for github Extension · Developer Tools 26 170 ★ 367KiB

icon

Enhanced GitHub Extension · Developer Tools 26 59 ★ 47.01KiB

icon

Bookmarks clean up Extension · Productivity 26 600 ★ 861KiB

icon

GitHub Repo Size Extension · Developer Tools 26 12 ★ 51.64KiB

icon

RSS Feed Reader Extension · News & Weather 26 7093 ★ 4.32MiB

icon

Google Apps Script GitHub Assistant Extension · Developer Tools 26 98 ★ 153KiB

icon

NoCoding Data Scraper - Easy Web Scraping Extension · Productivity 26 176 ★ 7.0MiB

icon

Bulk URL Opener Extension · Productivity 26 46 ★ 242KiB

icon

Simplescraper — a fast and free web scraper Extension · Productivity 26 327 ★ 1.03MiB

icon

ModResponse - Mock and replay API Extension · Developer Tools 26 23 ★ 454KiB

icon

Bulk Image Downloader From Url List Extension · Productivity 26 46 ★ 1.38MiB

icon

StorageAce Extension · Developer Tools 26 13 ★ 251KiB

icon

Live editor for CSS, Less & Sass - Magic CSS Extension · Developer Tools 26 266 ★ 2.15MiB

icon

LeetHub v2 Extension · Productivity 26 64 ★ 257KiB

icon

CSS Stacking Context inspector Extension · Developer Tools 26 21 ★ 262KiB

icon

TABLERONE tab manager Extension · Productivity 26 827 ★ 4.11MiB

icon

online / offline Bookmark Manager Extension · Productivity 26 40 ★ 533KiB