Greasy Fork

Greasy Fork is available in English.

Github 仓库大小

在 github 搜索和存储库页面上的存储库名称旁边添加存储库大小

当前为 2024-07-31 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
人民的勤务员
评分
0 0 0
版本
0.1.2
创建于
2024-07-31
更新于
2024-07-31
大小
6.5 KB
许可证
MIT
适用于

# [![Gmail](https://img.shields.io/badge/Contact-Gmail-yellow?svg&)](mailto:[email protected])人民的勤务员/UserScripts

[![GreasyFork](https://img.shields.io/static/v1?label=%20&message=GreasyFork&style=flat-square&labelColor=7B0000&color=960000&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3ggEBCQHM3fXsAAAAVdJREFUOMudkz2qwkAUhc/goBaGJBgUtBCZyj0ILkpwAW7Bws4yO3AHLiCtEFD8KVREkoiFxZzX5A2KGfN4F04zMN+ce+5c4LMUgDmANYBnrnV+plBSi+FwyHq9TgA2LQpvCiEiABwMBtzv95RSfoNEHy8DYBzHrNVqVEr9BWKcqNFoxF6vx3a7zc1mYyC73a4MogBg7vs+z+czO50OW60Wt9stK5UKp9Mpj8cjq9WqDTBHnjAdxzGQZrPJw+HA31oulzbAWgLoA0CWZVBKIY5jzGYzdLtdE9DlcrFNrY98zobqOA6TJKHW2jg4nU5sNBpFDp6mhVe5rsvVasUwDHm9Xqm15u12o+/7Hy0gD8KatOd5vN/v1FozTVN6nkchxFuI6hsAAIMg4OPxMJCXdtTbR7JJCMEgCJhlGUlyPB4XfumozInrupxMJpRSRtZlKoNYl+m/6/wDuWAjtPfsQuwAAAAASUVORK5CYII= "Greasyfork")](http://greasyfork.icu/users/1169082)
![Total Installs](https://img.shields.io/badge/dynamic/json?color=0084ff&label=Total%20Installs&query=$.totalInstalls&url=https://raw.githubusercontent.com/qinwuyuan-cn/UserScripts/main/docs/total_installs.json)
![Total Daily Installs](https://img.shields.io/badge/dynamic/json?color=0084ff&label=Total%20Daily%20Installs&query=$.totalDailyInstalls&url=https://raw.githubusercontent.com/qinwuyuan-cn/UserScripts/main/docs/total_installs.json)
![Scripts Count](https://img.shields.io/badge/dynamic/json?color=1E90FF&label=Scripts%20Count&query=$.numScripts&url=https://raw.githubusercontent.com/qinwuyuan-cn/UserScripts/main/docs/total_installs.json)
![Good Ratings](https://img.shields.io/badge/dynamic/json?color=4CAF50&label=Good%20Ratings&query=$.totalGoodRatings&url=https://raw.githubusercontent.com/qinwuyuan-cn/UserScripts/main/docs/total_installs.json)
![Ok Ratings](https://img.shields.io/badge/dynamic/json?color=FF9800&label=Ok%20Ratings&query=$.totalOkRatings&url=https://raw.githubusercontent.com/qinwuyuan-cn/UserScripts/main/docs/total_installs.json)
![Bad Ratings](https://img.shields.io/badge/dynamic/json?color=F44336&label=Bad%20Ratings&query=$.totalBadRatings&url=https://raw.githubusercontent.com/qinwuyuan-cn/UserScripts/main/docs/total_installs.json)

[![Github](https://img.shields.io/badge/Github-100000?svg&logo=github&logoColor=white)](https://github.com/qinwuyuan-cn/)
[![commit](https://img.shields.io/github/last-commit/qinwuyuan-cn/UserScripts?color=blue&logo=githube)](https://github.com/qinwuyuan-cn/)
[![forks](https://img.shields.io/github/forks/qinwuyuan-cn/UserScripts?svg&style=flat-square&label=Fork&color=4285dd&logo=github)](https://github.com/qinwuyuan-cn/UserScripts)
[![stars](https://img.shields.io/github/stars/qinwuyuan-cn/UserScripts?svg&style=flat-square&label=stars&color=4285dd&logo=github)](https://github.com/qinwuyuan-cn/UserScripts)
[![Issue](https://img.shields.io/github/issues/qinwuyuan-cn/UserScripts/github-chinese?style=flat-square&logo=github&label=Issue)]( https://github.com/qinwuyuan-cn/UserScripts/issues)
![license](https://img.shields.io/github/license/qinwuyuan-cn/UserScripts?svg&style=flat-square&color=4285dd&logo=github)
![CopyRight](https://img.shields.io/badge/CopyRight-人民的勤务员-4285dd" "人民的勤务员为人民服务")
![JavaScript](https://img.shields.io/badge/JavaScript-323330?svg&logo=javascript&logoColor=F7DF1E "JavaScript")
![Support](https://img.shields.io/badge/Support-Chrome%7CFirefox%7CEdge-blue?svg&)
![**Tampermonkey OK**](https://img.shields.io/badge/Tampermonkey-OK-006989?labelColor=012A36)
![**Violentmonkey OK**](https://img.shields.io/badge/Violentmonkey-OK-006989?labelColor=4B3F72)
![**FireMonkey OK**](https://img.shields.io/badge/FireMonkey-OK-006989?labelColor=885053)









Github Repo Size

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

## Preview

![preview1.png](https://img.xwyue.com/i/2024/08/01/66aa9344b5041.png)
![preview2.png](https://img.xwyue.com/i/2024/08/01/66aa9344db1ea.png)

## Prerequisites

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

- [Tampermonkey](https://tampermonkey.net/) (Chrome, Firefox, Safari, Microsoft Edge, Opera Next)
- [Violentmonkey](https://violentmonkey.github.io/) (Chrome, Firefox, Microsoft Edge)
- [Greasemonkey](https://www.greasespot.net/) (Firefox)
- [Userscripts](https://apps.apple.com/us/app/userscripts/id1463298887) (Safari)

## Installation

1. Install Tampermonkey or your preferred userscript manager.
2. Install the script from [here](http://greasyfork.icu/scripts/458048-github-repo-size/code/Github%20Repo%20Size.user.js).
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](https://github.com/settings/tokens/new?description=repo-size%20userscript&scopes=repo).
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.

## Change description

Fix the problem of failure in search page
Fixed the issue of not displaying when viewing other warehouses (increased delay)


## grateful

The script is modified from the user **[mshll](http://greasyfork.icu/zh-CN/users/1010122)**'s script [Github Repo Size](http://greasyfork.icu/scripts/458048) Thanks to the original The **hard work** and **wisdom** of the author **mshll**