GitHub Top Forks Viewer

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
maya1900
Daily installs
0
Total installs
2
Ratings
0 0 0
Version
1.2
Created
2026-05-03
Updated
2026-05-07
Size
8.52 KB
License
MIT
Applies to

## 中文

篡改猴脚本,在 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