GitHub Top Forks Viewer

Display top 5 most starred forks in the sidebar of GitHub repository pages

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
maya1900
今日安裝
1
安裝總數
3
評價
0 0 0
版本
1.2
建立日期
2026-05-03
更新日期
2026-05-07
尺寸
8.5 KB
授權條款
MIT
腳本執行於

## 中文

篡改猴脚本,在 GitHub 仓库页面右侧栏显示该仓库被 fork 后 star 数最多的前 5 个项目。

### 功能

- 在仓库页右侧栏 Languages 下方显示 Top 5 fork
- 支持按 Stars / Newest / Watchers 排序
- 排序偏好跨会话保存
- 5 分钟本地缓存,减少 API 请求
- 兼容 GitHub SPA 导航

### 安装

1. 安装 [Tampermonkey](https://www.tampermonkey.net/) 浏览器扩展
2. 点击篡改猴图标 → 添加新脚本
3. 粘贴 `github-top-forks.user.js` 的内容并保存

### 使用

打开任意 GitHub 仓库页面(如 `https://github.com/owner/repo`),右侧栏 Languages 下方会自动显示 fork 列表。

点击标题栏右侧下拉菜单可切换排序方式。

---

## Screenshot

```
┌─ Top Forks ────── [Stars ▾] ─┐
│ 🔵 user-a ★ 128 │
│ 🔵 user-b ★ 64 │
│ 🔵 user-c ★ 32 │
│ 🔵 user-d ★ 16 │
│ 🔵 user-e ★ 8 │
└───────────────────────────────┘
```

## License

MIT