Skip to content

Commit edae3ca

Browse files
committed
Refine content-scripts matchers
1 parent 4c1524f commit edae3ca

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

public/manifest.firefox.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616

1717
"content_scripts": [
1818
{
19-
"matches": ["*://github.com/*"],
20-
"js": ["js/vendor.js", "js/githubFile.js", "js/githubPR.js"]
19+
"matches": ["*://github.com/*/*/blob/*"],
20+
"js": ["js/vendor.js", "js/githubFile.js"]
21+
},
22+
{
23+
"matches": ["*://github.com/*/*/pull/*/files*"],
24+
"js": ["js/vendor.js", "js/githubPR.js"]
2125
}
2226
],
2327

public/manifest.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616

1717
"content_scripts": [
1818
{
19-
"matches": ["*://github.com/*"],
20-
"js": ["js/vendor.js", "js/githubFile.js", "js/githubPR.js"]
19+
"matches": ["*://github.com/*/*/blob/*"],
20+
"js": ["js/vendor.js", "js/githubFile.js"]
21+
},
22+
{
23+
"matches": ["*://github.com/*/*/pull/*/files*"],
24+
"js": ["js/vendor.js", "js/githubPR.js"]
2125
}
2226
],
2327

0 commit comments

Comments
 (0)