GitHub links open in a new tab
Click any github.com link on any site — articles, READMEs, docs, social posts — and it opens in a new tab instead of navigating away from what you were reading.
GitHub Companion is a free, open-source browser extension that intercepts clicks on github.com links — on any site — and opens them in a new tab, so you never lose your place.
GitHub Companion
new tab links · enabled
plain click intercepted
modifiers untouched
One content script, one rule: GitHub links open in a new tab — everything else behaves exactly as before.
Click any github.com link on any site — articles, READMEs, docs, social posts — and it opens in a new tab instead of navigating away from what you were reading.
Ctrl, Cmd, Shift, and Alt-click keep your browser’s native behaviour. Links that already target a new tab are left completely alone.
Covers github.com, gist.github.com, raw.githubusercontent.com and the other GitHub-owned domains — not just the main site.
The extension asks only for storage and runs a tiny content script. No analytics, no remote code, no accounts — open source, audit it yourself.
The extension watches clicks in the capture phase and rewrites only the GitHub ones. No page is modified, no data leaves your browser.
Grab the Chromium or Firefox build from the downloads page — or load the source build unpacked in developer mode.
github-companion → chrome://extensions → Load unpackedThe content script watches for clicks on GitHub links across every page you visit. Nothing changes until you click one.
click handler → github.com URL? → new tabThe original tab stays exactly where it was — scroll position, form state, and reading context are all preserved.
preventDefault → window.open(_blank, noopener)TypeScript end to end — content script, popup, and a pure URL classifier with unit tests. Issues and pull requests welcome.
Browse the source