A Firefox addon displaying a Github repositories size
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
art
icon
src
.gitignore
LICENSE.md
README.md
gulpfile.js
manifest.json
package-lock.json
package.json

README.md

A Firefox addon to display a Github repository's size

Mozilla Add-on UserScript

Add repository size to the Github's summary.

Addon screenshot

⚠ This addon use the size as returned by the GitHub API and may be innacurate due to how GitHub stores git repositories! See here and here for more informations.

Usage

Download the addon from addons.mozilla.org or, if you prefer, you can download this project as a userscript on OpenUserJs (also available on the GitHub releases page). ⚠ If you are using ViolentMonkey as a UserScript manager on Firefox, the script will not work due to security constraints on Webextensions in Firefox, see violentmonkey/violentmonkey#173.

Private Repositories

To enable this addon on private repositories, either go to a private repository and a dialog will ask for a token automatically, or click on the size on any public repository. You can get a Personnal Access Token in your GitHub settings. Don't forget to check the repo scope.

Building

  • Use npm run build-webext to build the Firefox webextension
  • Use npm run build-userscript to build the UserScript
  • Use npm run webext to have an automated build on changes