简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️access GitHub Readme file on for a better experience。
UserScripts
GitHubView the serviceman’s scriptGithub:@ChinaGodMan
GreasyForkView the serviceman’s script
View the serviceman’s script on the current page
GreasyFork Total Installs Daily update checks Total Daily Installs Scripts Count
Good Ratings Ok Ratings Bad Ratings CodeQuality Stars Forks Issue
If the script helps you,Can light up the stars to encourage
Telegram TikTok Instagram Gmail
Recommended use:
Support
Support
Support
💡 Tip: The script manager and browser listed above do not represent all
The script runs normally in the following environment
Passed

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 」

Views

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 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`)[Here](https://github.com/settings/tokens/new?description=GitHub%20File%20Size%20Viewer&scopes=repo)Generate 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](https://chromewebstore.google.com/detail/github-file-size-viewer/hhelonbocpiichcjmdgfgfeiangchefh) ![2025.05.26](https://s2.loli.net/2025/05/26/Awn71VdN3ZgHftK.png) ![2025.05.26](https://s2.loli.net/2025/05/26/ou6nK5kidqFNHhe.png) ## 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 me](https://github.com/ChinaGodMan/UserScripts/blob/main/docs/help/en#readme)View the teaching of pictures and texts!** ### [View all publish scripts](https://github.com/ChinaGodMan/UserScripts/tree/main/docs/en#-Script-List)

More user scripts /Back to top↑