A Chrome extension that enhances GitHub's UI with practical features.
Inspired by Refined GitHub — a great extension, but some bugs linger unfixed (e.g. the Releases tab) and certain feature requests go unaddressed due to scope control. Better GitHub fills those gaps.
Another motivation: Refined GitHub has too many features tightly coupled to GitHub's DOM, which breaks frequently as GitHub updates its UI. By keeping the feature set small and preferring the GitHub API over DOM manipulation, Better GitHub stays maintainable long-term.
Note: GitHub frequently A/B tests UI changes and offers additional toggles in Feature Preview. Features that depend on unstable or frequently changing DOM structures are unlikely to be added, to keep this project at a manageable complexity.
-
Better Top Repositories — Auto-expand the "Top repositories" sidebar list and pin your favorite repos to the top. Works on the dashboard, feed page, and navigation drawer.
-
PR Branch Names — Display source branch name next to each PR title. Click to copy.
-
PR Review Status — Show review thread resolution status (resolved / unresolved) on the PR list. Only appears on PRs that have review threads; PRs without any review comments won't show a badge. Draft PRs are also excluded.
-
PR Diff Stats — Show additions, deletions, and changed file count (e.g.
+223 −114 · 5 files) on each row of the PR list. Requires a token. -
PR Label Position — Move labels to the front of PR titles for better visibility and scanning.
-
PR Approve Now — Add an "approve now" shortcut to the Reviewers sidebar on PR detail pages for quick approval. Requires a token.
-
Collapse/Expand All Files — Add buttons to the diff toolbar to collapse or expand all file diffs in one click, plus a button inside the file tree to collapse or expand all folders. Works on PR, commit, and compare pages, and compatible with both the old and the new "Files changed" experience.
-
Default Sort by Updated — Sort PR and issue lists by recently updated instead of GitHub's default creation time order. No more missing active PRs buried on page 2.
-
Releases Tab — Add a Releases tab to the repository navigation bar for quick access.
-
Watch/Fork/Star Popup — Hover over the Watch, Fork, or Star counts on a repo page to preview the full list of watchers, forks, or stargazers in a popup, with "View all" links to the full pages. Results are cached for 5 minutes to minimize API calls.
-
Commit Tags — Show git tags as badges on the commits list page, so you can instantly see which commits are tagged releases.
-
Commit Diff Stats — Show additions, deletions, and changed file count (e.g.
+223 −114 · 5 files) on each row of the commits list page. Requires a token. -
Recent Commit Message Color — Highlight recent commits with color based on their age, making it easy to spot the latest changes. Always on.
All features except Recent Commit Message Color can be individually toggled on/off in the extension options.
-
Clone the repo and build:
pnpm install pnpm build
-
Open
chrome://extensions, enable Developer mode, click Load unpacked, and select thedistfolder.
Chrome Web Store - Better GitHub
Right-click the extension icon → Options:
- GitHub Token — A classic personal access token for private repos and review status. Needs
reposcope. Create one here. - Feature Toggles — Enable or disable each feature individually. Changes take effect immediately.












