diff --git a/README.md b/README.md
index 976010b..bece9dd 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# GitLab Pierre
-Chrome extension that replaces the `gitlab.com` changes view with Pierre-powered diffs and a Pierre-powered changed-files tree.
+Chrome extension that replaces GitLab changes views with Pierre-powered diffs and a Pierre-powered changed-files tree, including self-hosted GitLab instances.
@@ -19,9 +19,9 @@ Load the generated `dist/` directory in Chrome:
## Supported pages
-- Merge request changes: `https://gitlab.com///-/merge_requests//diffs`
-- Commits: `https://gitlab.com///-/commit/`
-- Compares: `https://gitlab.com///-/compare/...`
+- Merge request changes: `https://///-/merge_requests//diffs`
+- Commits: `https://///-/commit/`
+- Compares: `https://///-/compare/...`
The manifest-declared content script is a small bootstrap. It dynamically loads the Pierre app bundle from the extension, fetches GitLab's same-origin raw `.diff` endpoint, parses it with `@pierre/diffs`, renders each parsed file with Pierre's ``, and renders the changed file list with `@pierre/trees`.
diff --git a/public/manifest.json b/public/manifest.json
index 1511b7f..58b502a 100644
--- a/public/manifest.json
+++ b/public/manifest.json
@@ -5,18 +5,25 @@
"version": "0.4.30",
"content_scripts": [
{
- "matches": ["https://gitlab.com/*"],
+ "matches": [
+ "https://*/*/-/merge_requests/*/diffs*",
+ "https://*/*/-/commit/*",
+ "https://*/*/-/compare/*"
+ ],
"js": ["content.js"],
"css": ["content.css"],
"run_at": "document_idle"
}
],
- "host_permissions": ["https://gitlab.com/*"],
"permissions": ["storage"],
"web_accessible_resources": [
{
"resources": ["pierre-app.js", "*.js"],
- "matches": ["https://gitlab.com/*"]
+ "matches": [
+ "https://*/*/-/merge_requests/*/diffs*",
+ "https://*/*/-/commit/*",
+ "https://*/*/-/compare/*"
+ ]
}
]
}