Firefox 瀏覽器附加元件
  • 擴充套件
  • 佈景主題
    • 用於 Firefox
    • 字典與語言套件
    • 其他瀏覽器網站
    • Android 版的附加元件
登入
Patchtree — pretty diffs & code review 預覽

Patchtree — pretty diffs & code review 作者: danilrwx

Turn any raw .diff / .patch page into a full code-review UI: tree-sitter syntax highlighting, a searchable file tree, inline & side-by-side views, and inline review — comments, suggestions, approvals — for GitLab and GitHub.

0(0 筆評分)0(0 筆評分)
下載 Firefox 並安裝擴充套件
下載檔案

擴充套件後設資料

畫面擷圖
關於此擴充套件
patchtree renders plain-text .diff / .patch pages as a fast, full-featured code-review interface — the kind you get on a merge/pull request, but on the raw diff itself, on any host.

Open a diff URL such as https://gitlab.example.com/group/project/-/merge_requests/104.diff (or click the toolbar icon on any MR/PR page) and review right there. It also renders local .diff / .patch files opened via file://.

Diff rendering
  • Any plain-text .diff / .patch page, whatever served it — git-format or a plain diff -u, GitLab, GitHub, or a local file.
  • Inline and side-by-side views; fully added or deleted files use the full width in split mode.
  • Real syntax highlighting via tree-sitter (WebAssembly, run off the main thread): Go, JS/TS/TSX, Python, Bash, JSON, YAML, Rust, C, C++, Java, Ruby, PHP, C#, Lua, TOML, HCL/Terraform, CSS, HTML, and Helm/Go templates.
  • Word-level diff: the exact words that changed get a stronger tint.
  • Expand hidden lines between hunks, or a Full-file toggle per file.
  • Large diffs stay smooth — only visible file sections are rendered.

Navigation
  • Resizable, filterable file tree (filter matches paths and diff content), status icons and colors (added / modified / renamed / deleted), per-file +N −M and comment-count badges.
  • Filter by file extension; hide viewed or deleted files.
  • Viewed checkboxes with an N/M progress counter; auto-collapse of generated files (lock files, vendored, minified, *.pb.go, …).
  • Follows the file you're on and remembers your place across reloads.
  • Keyboard: j/k files, n/p threads, v viewed, x fold, e toggle tree, / focus filter.
  • Per-commit diff filter; copy-path, open-at-head, and line permalinks.

Review (with an access token)
  • Threads anchored to lines (old or new side), replies, edit and delete.
  • Markdown editor with a toolbar and Write/Preview tabs, rendered through the platform's own API.
  • Suggestions: one click prefills a suggestion block; existing suggestions render as a red/green widget with Apply (GitLab).
  • Multiline comments (shift-click a line number to extend the range).
  • Resolve / unresolve threads and an "unresolved" jump list (GitLab).
  • Draft reviews and a Submit-review panel: Comment / Approve / Request changes, with the approval state shown as a badge.
  • Pipeline/checks status and a merge-conflict indicator in the toolbar.

Appearance
  • Theme gallery with the base24 schemes from tinted-theming, live code previews (including how added/removed lines look), light/dark filter, and paste-your-own scheme YAML.
  • Bundled fonts (JetBrains Mono, Inter, and Nerd Font builds), or any local font by name; separate UI/code font sizes, tab width, italic-comment and ligature toggles.

Setup
  • Firefox MV3 treats host access as opt-in — enable Access your data for all websites (or grant specific hosts) in the add-on's Permissions tab, or the content script won't run.
  • To render local files, allow the add-on access to file:// URLs.
  • Rendering needs no account. To turn on review actions, open the ⚙ menu → Access tokens and add a GitLab host (PAT scope api) and/or a GitHub token (classic repo, or fine-grained with Pull requests read & write).

Privacy

patchtree talks only to the diff's own host and its API (GitLab/GitHub) to render diffs and post your review actions. Access tokens are stored locally (storage.local) and never synced or sent anywhere else. No analytics, no tracking, no third-party servers.

Open source (Apache-2.0): github.com/danilrwx/patchtree
由 1 位評論者給出 0 分
登入後即可幫此擴充套件評分
目前沒有評分

已儲存星等

5
0
4
0
3
0
2
0
1
0
還沒有評論
權限與資料

必要權限:

  • 存取您所有網站中的資料

選用的權限:

  • 存取您在 api.github.com 的資料
  • 存取您在 github.com 的資料
  • 存取您在 raw.githubusercontent.com 的資料
  • 存取您在 patch-diff.githubusercontent.com 的資料

收集下列資料:

  • 開發者聲稱此擴充套件不要求收集任何資料。
了解更多
更多資訊
附加元件網址
  • 首頁
  • 複製附加元件 ID
版本
1.3.0
大小
18.56 MB
最近更新
6 天前 (2026年8月6日)
相關分類
  • 網頁開發
授權條款
Apache License 2.0
終端使用者授權協議
閱讀此附加元件的授權協議
版本紀錄
  • 瀏覽所有版本
新增至收藏集
檢舉此附加元件
前往 Mozilla 官網

附加元件

  • 關於
  • Firefox 附加元件部落格
  • 擴充套件工作坊
  • 開發者交流中心
  • 開發者政策
  • 社群部落格
  • 討論區
  • 回報 Bug
  • 評論撰寫指南

下載

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新編譯版本

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

社群

  • Connect
  • Contribute
  • Developer

追蹤

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隱私權
  • Cookie
  • 法律資訊

除另有註明外,本站內容皆採用創用 CC 姓名標示—相同方式分享條款 3.0 或更新版本授權大眾使用。