GitHub Fork Compare Fix 作者: Nico
Makes GitHub compare/pull request links on your forks point at your own repository instead of upstream.
擴充套件後設資料
畫面擷圖
關於此擴充套件
On a fork, GitHub points every compare and pull request link at the upstream repository — the Contribute menu, the "Compare & pull request" banner, and the "N commits ahead" link in the branch info bar. If you use your fork as a repository in its own right, that is the wrong target every single time, and opening a pull request against upstream by accident is far too easy.
This extension fixes that for the repositories you choose:
• Compare and pull request links point at your own repository, comparing your branch against your fork's own default branch.
• The branch info bar is restated against your default branch, so it reads exactly like a repository that is not a fork — with the real commit counts, not the ones relative to upstream.
• Links that mean the opposite (the "N commits behind" link) are left alone.
• Optionally redirects when an upstream compare page is already open.
• Enable a repository with one click from the toolbar, or list them as owner/repo or owner/* in the options page.
Repositories you have not enabled are untouched, so forks you genuinely contribute upstream from keep working exactly as before.
Privacy: no accounts, no tokens, no third-party requests, no telemetry. It reads github.com pages using your existing session and stores your list of repositories in extension storage. That is all.
Source code (GPL-3.0): https://github.com/D3SOX/gh-fork-compare-fix
This extension fixes that for the repositories you choose:
• Compare and pull request links point at your own repository, comparing your branch against your fork's own default branch.
• The branch info bar is restated against your default branch, so it reads exactly like a repository that is not a fork — with the real commit counts, not the ones relative to upstream.
• Links that mean the opposite (the "N commits behind" link) are left alone.
• Optionally redirects when an upstream compare page is already open.
• Enable a repository with one click from the toolbar, or list them as owner/repo or owner/* in the options page.
Repositories you have not enabled are untouched, so forks you genuinely contribute upstream from keep working exactly as before.
Privacy: no accounts, no tokens, no third-party requests, no telemetry. It reads github.com pages using your existing session and stores your list of repositories in extension storage. That is all.
Source code (GPL-3.0): https://github.com/D3SOX/gh-fork-compare-fix
由 1 位評論者給出 0 分
權限與資料
更多資訊
- 版本
- 1.0.2
- 大小
- 38.01 KB
- 最近更新
- 6 天前 (2026年8月13日)
- 相關分類
- 隱私權保護政策
- 閱讀此附加元件的隱私權保護政策
- 版本紀錄
- 新增至收藏集