人民的勤务员
2025-05-26T10:43:01Z

GitHub File Size Viewer is a lightweight userscript that displays the size of each file and folder in GitHub repositories. It uses the GitHub API to fetch details, including recursive folder sizes, making it easy to see the total size of nested directories.

简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️access GitHub Readme file on for a better experience。

GitHubView the serviceman’s scriptGithub:@ChinaGodMan
GreasyForkView the serviceman’s script
View the serviceman’s script on the current page

⭐If the script helps you,Can light up the stars to encourage⭐

Recommended use：

💡 Tip: The script manager and browser listed above do not represent all
The script runs normally in the following environment

GitHub displays file and folder sizes

「 Displays the size of each file and folder in the GitHub repository. It uses the GitHub API to get details, including recursive folder sizes, making it easy to see the total size of nested directories. Display file size in KB, MB, or GB 」

Download:Github | ⭐Greasy Fork

Update records

🛠️ GitHub Show file and folder sizes Update log

📅 2025.9.2.1

New: aspen138exist#188 Added new featuresDisplay the number of files

Function display

GitHub File Size Viewer (GitHub document/Folder Size Display Tool)

This script passes GitHub API Get the size of files and folders，and display it in GitHub Files corresponding to the warehouse page/Next to the folder link。
Support recursive calculation of folder size，Provides a humanized size format。

Functional Features

show GitHub File and folder size

Automatically recursively calculate the total folder size

In the file/Display size visually next to the folder link

How to use

Make sure the configuration is valid GitHub Personal access token（GITHUB_TOKEN）HereGenerate a new token，To avoid API Request restrictions。

Open any GitHub Warehouse page，The script will run automatically，And in the file/Display size next to folder link。

💖 The script referenced or used the following script:

GitHub File Size Viewer

Help

Recommended browser and script manager：

Greasemonkey + Waterfox

Tampermonkey/Violentmonkey + Firefox

Tampermonkey/Violentmonkey + Chrome

Userscripts + ios Safari

Violentmonkey/KiWiBrowser + Android

If you need to learn more about how to install user scripts,Click meView the teaching of pictures and texts!

View all publish scripts

More user scripts /Back to top↑