GitHub - Enhanced Shortcuts & Header Toolbar

Extends GitHub navigation: adds a header toolbar and fixes native shortcuts to work on any keyboard layout.

当前为 2025-10-25 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Vikindor
评分
0 0 0
版本
1.2.2
创建于
2025-10-23
更新于
2025-10-25
大小
13.3 KB
许可证
MIT
适用于

GitHub - Enhanced Shortcuts & Header Toolbar

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 = {
  repositories: true,
  projects: true,
  packages: true,
  stars: true,
  gists: true,
  organizations: true,
  enterprises: true,
  issues: true,
  pulls: true,
  order: ['repositories','projects','packages','stars','gists','organizations','enterprises','issues','pulls'],
};

true / false — toggle visibility of each button

order — controls display order

🎹 Available Shortcuts

All shortcuts work regardless of current keyboard layout.

Combo Destination Context
G + D Dashboard Global
G + N Notifications Global
G + I Issues Repo / Global
G + P Pull Requests Repo / Global
G + C Code tab Repo only
G + A Actions Repo only
G + B Projects Repo only
G + W Wiki Repo only
G + G Discussions Repo only
G + R Your Repositories Global
G + T Your Projects Global
G + K Your Packages Global
G + S Your Stars Global
G + J Your Gists Global
G + O Organizations Global
G + E Enterprises Global

📦 Header Buttons

Button Shortcut Destination
Repositories G + R https://github.com/<user>?tab=repositories
Projects G + T https://github.com/<user>?tab=projects
Packages G + K https://github.com/<user>?tab=packages
Stars G + S https://github.com/<user>?tab=stars
Gists G + J https://gist.github.com/<user>
Organizations G + O https://github.com/settings/organizations
Enterprises G + E https://github.com/settings/enterprises
Issues G + I Context-aware (Repo or Global)
Pull requests G + P Context-aware (Repo or Global)

📄 License

MIT License © Vikindor