A userscript that adds the size of Github repositories to the search results and repository pages.
To use this script, you will need a userscript manager. Some popular choices are:
- Tampermonkey (Chrome, Firefox, Safari, Microsoft Edge, Opera Next)
- Violentmonkey (Chrome, Firefox, Microsoft Edge)
- Greasemonkey (Firefox)
- Userscripts (Safari)
- Install Tampermonkey or your preferred userscript manager.
- Install the script from here.
- (Optional) If you want to view the sizes of private repositories, see the instructions below.
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.
- Generate a new token here.
- Give the token a name and check the
repo
scope. - Click on the
Generate token
button and copy the token. - Replace the value of the
TOKEN
constant at the top of the script with the token you just generated.
This script will automatically run on Github search pages and repository pages, and will display the repository size next to the repository name.
If you have any issues or feedback, please open an issue here
This script is not affiliated with Github, Inc. Use it at your own risk.