Patchtree — pretty diffs & code review Firefox

Examine source code of Patchtree — pretty diffs & code review

作者: danilrwx Add-on
Inspect and view changes in Patchtree — pretty diffs & code review source codes across current and past versions
xHeader
Modify request and response headers. No ads, no malware.
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "patchtree",
  "version": "1.3.0",
  "description": "Render raw .diff/.patch pages as a colored diff with tree-sitter syntax highlighting",
  "background": {
    "scripts": [
      "background.js"
    ],
    "type": "module"
  },
  "icons": {
    "16": "assets/icons/icon16.png",
    "48": "assets/icons/icon48.png",
    "128": "assets/icons/icon128.png"
  },
  "action": {
    "default_title": "Open pretty diff",
    "default_icon": {
      "16": "assets/icons/icon16.png",
      "48": "assets/icons/icon48.png",
      "128": "assets/icons/icon128.png"
    }
  },
  "permissions": [
    "storage",
    "activeTab"
  ],
  "host_permissions": [
    "https://api.github.com/*",
    "https://github.com/*",
    "https://raw.githubusercontent.com/*",
    "https://patch-diff.githubusercontent.com/*"
  ],
  "web_accessible_resources": [
    {
      "resources": [
        "assets/fonts/*",
        "assets/themes.json"
      ],
      "matches": [
        "<all_urls>"
      ]
    }
  ],
  "content_scripts": [
    {
      "matches": [
        "*://*/*.diff",
        "*://*/*.patch",
        "file:///*.diff",
        "file:///*.patch"
      ],
      "js": [
        "content.js"
      ],
      "css": [
        "assets/viewer.css"
      ],
      "run_at": "document_idle"
    }
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
  },
  "browser_specific_settings": {
    "gecko": {
      "id": "patchtree@danilrwx.github.io",
      "strict_min_version": "128.0",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    }
  }
}

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

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