mshll / repo-size

Userscript to see GitHub repo sizes.

Home Page:https://greasyfork.org/en/scripts/458048-github-repo-size

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Repo Size

Download Version Installs License

A userscript that adds the size of Github repositories to the search results and repository pages.

Preview

Preview1 Preview2

Prerequisites

To use this script, you will need a userscript manager. Some popular choices are:

Installation

  1. Install Tampermonkey or your preferred userscript manager.
  2. Install the script from here.
  3. (Optional) If you want to view the sizes of private repositories, see the instructions below.

View Private Repositories Size

By default, this script will only display the sizes of public repositories. To display the sizes of private repositories, you will need to generate a new personal access token with the repo scope. This token will be used to authenticate with the Github API.

  1. Generate a new token here.
  2. Give the token a name and check the repo scope.
  3. Click on the Generate token button and copy the token.
  4. Replace the value of the TOKEN constant at the top of the script with the token you just generated.

Usage

This script will automatically run on Github search pages and repository pages, and will display the repository size next to the repository name.

Support

If you have any issues or feedback, please open an issue here

Disclaimer

This script is not affiliated with Github, Inc. Use it at your own risk.

About

Userscript to see GitHub repo sizes.

https://greasyfork.org/en/scripts/458048-github-repo-size

License:MIT License


Languages

Language:JavaScript 100.0%