GitHub - Add Shortcuts To Page Header

Adds a configurable toolbar to the GitHub header with shortcuts to Repositories, Stars, Gists, and more.

目前為 2025-10-23 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Vikindor
評價
0 0 0
版本
1.0.0
建立日期
2025-10-23
更新日期
2025-10-23
尺寸
12.0 KB
授權條款
MIT
腳本執行於


GitHub - Add Shortcuts To Page Header

Userscript for browsers that adds a customizable shortcut bar to the GitHub and Gist page headers.
Places quick-access buttons (Profile, Repositories, Stars, Gists etc.) directly in the top navigation with tooltips and hotkey hints.

✨ Features

- Works on both **github.com** and **gist.github.com**
- Configurable set of header buttons in the `CONFIG` section
- Adjustable order via `CONFIG.order`
- Automatically restores after PJAX (SPA) navigations
- Tooltips display assigned keyboard shortcuts (for example **G + R**)
- Native GitHub styling and dark/light theme support

🔧 Configuration

Open the script in your userscript manager and adjust the config block at the top:

```
const CONFIG = {
profile: true,
repositories: true,
projects: true,
packages: true,
stars: true,
gists: true,
organizations: true,
enterprises: true,
settings: true,
order: ['profile','repositories','projects','packages','stars','gists','organizations','enterprises','settings'],
};
```

true / false — toggle visibility of each button

order — controls display order

📦 Available Buttons

| Button | Shortcut | Destination |
| Profile | G + P | https://github.com/ |
| Repositories | G + R | https://github.com/?tab=repositories |
| Projects | G + T | https://github.com/?tab=projects |
| Packages | G + K | https://github.com/?tab=packages |
| Stars | G + S | https://github.com/?tab=stars |
| Gists | G + I | https://gist.github.com/ |
| Organizations | G + O | https://github.com/settings/organizations |
| Enterprises | G + E | https://github.com/settings/enterprises |
| Settings | G + C | https://github.com/settings/profile |