Better Github

一个提升 GitHub 浏览体验的用户脚本

Od 08.05.2026.. Pogledajte najnovija verzija.

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!)

Autor
ChouChiu
Ocjene
0 0 0
Verzija
1.0.2
Stvoreno
08.05.2026.
Ažurirano
08.05.2026.
Size
23,8 KB
Licenza
GPL-3.0-or-later
Primjenjuje se

Better GitHub

一个提升 GitHub 浏览体验的用户脚本,基于 vite-plugin-monkey + Vue 3 + TypeScript 构建。

功能

  • 返回顶部 — 右下角圆形按钮,外围带有圆环形进度条,实时显示滚动进度,点击后平滑滚动到顶部。
  • Release 文件排序与高亮 — 在 Release 页面根据用户偏好(系统、架构、安装包类型)智能排序下载文件,匹配度最高的文件高亮置顶。左下角齿轮按钮打开设置面板,可随时切换偏好。

开发

# 安装依赖
pnpm install

# 启动开发服务器(自动注入用户脚本到浏览器)
pnpm dev

# 构建生产版本
pnpm build

# 代码检查 & 格式化
pnpm lint
pnpm format

项目结构

src/
├── main.ts                          # 入口,初始化 release sorter 并挂载 Vue
├── App.vue                          # 根组件
├── style.css                        # 全局样式 + 高亮样式
├── components/
│   ├── ScrollToTopButton.vue        # 返回顶部按钮
│   ├── SettingsPanel.vue            # 通用设置面板(齿轮按钮 + 弹出面板容器)
│   └── ReleaseSorterSettings.vue    # Release 排序设置内容
└── utils/
    └── release-sorter.ts            # 排序/高亮核心逻辑与存储

安装

  1. 安装用户脚本管理器,如 TampermonkeyViolentmonkey
  2. 构建脚本(pnpm build),然后在管理器中安装 dist/better-github.user.js