Patchtree — pretty diffs & code review Firefox

Patchtree — pretty diffs & code review

作者: danilrwx Add-on
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.
xHeader
Modify request and response headers. No ads, no malware.

功能与功能

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

用户增长与下载统计

清单版本 V3 Add-on
作者:
danilrwx
每日用户数:
1
版本:
1.3.0 最后更新: 2026-08-06
版本代码:
6397930
创建日期:
2026-07-28
Firefox 附加组件 GUID:
patchtree@danilrwx.github.io
Firefox 附加组件数字 ID:
3045315
每周下载次数:
1
Firefox Android版:
风险:
High risk impact High risk likelihood
权限:
主机权限:
  • https://api.github.com/*
  • https://github.com/*
  • https://raw.githubusercontent.com/*
  • https://patch-diff.githubusercontent.com/*
内容脚本匹配:
  • *
大小:
18.56MB
完整描述:
查看详细描述
来源:
Firefox 插件商店
数据提取于:
2026-09-06
比较统计数据和排名:

联系开发者

Chrome-Stats 不拥有此 Firefox 插件。请使用下面的这些信息联系 Firefox 插件 开发人员。
开发者:
danilrwx
Firefox 插件商店
https://addons.mozilla.org/firefox/addon/patchtree/

Patchtree — pretty diffs & code review安全吗?

风险影响
风险影响衡量扩展程序可访问的额外权限级别。低风险影响的扩展程序不会造成太多危害,而高风险影响的扩展程序可能会造成很大的损害,如窃取您的密码、绕过您的安全设置和访问您的个人数据。高风险影响的扩展程序不一定是恶意的。但是,如果它们确实变成恶意的,它们可能会非常有害。

Patchtree — pretty diffs & code review 需要一些可能影响您的浏览器和数据安全的敏感权限。安装前请谨慎。

风险影响分析详情
  • Critical Allows access to all websites, posing a significant security risk as it can monitor and modify data from any visited site.
  • Critical ******* ****** ** *** ********* ******** *********** *********************
  • High ******* ******* **** *** ****** ***** *** ***** ** ******* **** ********* ********* ** * *********** *****
风险可能性
风险可能性衡量 Firefox 插件 可能变为恶意的概率。这由发布者和 Firefox 插件在 Firefox 插件商店上的声誉、Firefox 插件存在的时间以及关于 Firefox 插件的其他信号决定。我们的算法并不完美,随着我们发现检测恶意扩展程序的新方法,它们可能会发生变化。我们建议您在安装 Firefox 插件时始终保持谨慎。

Patchtree — pretty diffs & code review 是最近添加的,我们还没有足够的时间收集足够的数据来准确评估其风险级别。

风险可能性分析详情
  • High This extension has low user count. Unpopular extensions may not be stable or safe.
  • Medium **** ********* *** ******* ** *** **** * ******* *** ******* *** *** ** ****** ** *****
  • Medium **** ********* *** ***** ** *** **** * ******* *** ********** *** *** ** ****** ** *****
Extension Guard
延伸卫队

使用 Extension Guard 发现正在使用的每个扩展程序,分析风险并执行阻止策略

保护您的浏览器
升级以查看完整的风险分析详情

最佳 Patchtree — pretty diffs & code review 替代方案

这里是一些与Patchtree — pretty diffs & code review类似的Firefox add-on: