GitHub - Enhanced Shortcuts & Header Toolbar

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Vikindor
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.2.4
建立日期
2025-10-23
更新日期
2025-11-06
尺寸
13.4 KB
授權條款
MIT
腳本執行於

GitHub - Enhanced Shortcuts & Header Toolbar

Userscript for browsers that extends GitHub navigation with a customizable header toolbar and unified, layout‑independent keyboard shortcuts.

✨ Features

  • Works on both github.com and gist.github.com
  • Adds quick-access buttons (Repositories, Stars, Gists, etc.) to the header
  • Enhances native GitHub shortcuts (G + ...): they work on any keyboard layout now
  • Repo-context awareness — switches between repository tabs or global pages automatically
  • Custom shortcuts for personal sections (Repositories, Stars, Packages, Gists, etc.)
  • Configurable buttons in the CONFIG block with adjustable order
  • Automatically restores after PJAX (SPA) navigations
  • Native GitHub styling, dark/light theme support

🖼 Screenshot

GitHub header shortcuts screenshot

🔧 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
Shift + ? Keyboard shortcuts 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)