GitHub Fork Compare Fix Source
Coming soon to Firefox Add-ons and the Chrome Web Store

Your fork is a real repository.
GitHub should treat it like one.

On a fork, every compare and pull request link points at upstream — so you open PRs against the wrong repository. This extension points them back at your own, against your own default branch.

Download from GitHub Firefox Add-ons Chrome Web Store

What changes

Same GitHub, same design — only the repository it talks about is yours. The commit counts are recomputed against your default branch, so they are the numbers that actually matter to you.

Before

This branch is 1416 commits ahead of and 59 commits behind upstream/repo:main.
Contribute Sync fork

Every link here opens a pull request against upstream.

After

This branch is 1 commit ahead of and 212 commits behind my-default.
Contribute Sync fork

Compare, Contribute and "Open pull request" all stay in your repository.

One click per repository

Everything it fixes

Every entry point

The Contribute menu, "Compare & pull request", the commits-ahead link and /pull/new/ links all land in your repository.

Your default branch

A branch is compared against your default branch, not upstream's — the diff you were looking for.

Nothing leaves your browser

No accounts, no tokens, no third-party requests, no telemetry. It reads github.com pages and stores your repository list — that is all.

Opt in per repository

Toggle from the toolbar, or list repositories as owner/repo and owner/*. Everything else on GitHub is untouched.