Skip to content

Commit 2790021

Browse files
authored
Merge pull request #90 from N1ck/feat/optional-all-urls-permission
feat: make all_urls permission optional
2 parents b42d201 + 529d89e commit 2790021

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

src/manifest.json

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@
1414
"id": "{443bc2e2-8fa9-44ec-828a-fd84c0664f8d}"
1515
}
1616
},
17-
"permissions": ["contextMenus", "activeTab", "<all_urls>"],
18-
"host_permissions": ["https://api.giphy.com/*"],
19-
"optional_host_permissions": ["http://*/*", "https://*/*"],
17+
"permissions": [
18+
"contextMenus",
19+
"activeTab"
20+
],
21+
"host_permissions": [
22+
"https://api.giphy.com/*"
23+
],
24+
"optional_host_permissions": [
25+
"http://*/*",
26+
"https://*/*",
27+
"<all_urls>"
28+
],
2029
"icons": {
2130
"16": "images/icon16.png",
2231
"48": "images/icon48.png",
@@ -28,15 +37,27 @@
2837
},
2938
"content_scripts": [
3039
{
31-
"matches": ["https://github.com/*", "https://gist.github.com/*"],
32-
"css": ["style.css"],
33-
"js": ["main.js"]
40+
"matches": [
41+
"https://github.com/*",
42+
"https://gist.github.com/*"
43+
],
44+
"css": [
45+
"style.css"
46+
],
47+
"js": [
48+
"main.js"
49+
]
3450
}
3551
],
3652
"web_accessible_resources": [
3753
{
38-
"resources": ["images/*.png"],
39-
"matches": ["https://github.com/*", "https://gist.github.com/*"]
54+
"resources": [
55+
"images/*.png"
56+
],
57+
"matches": [
58+
"https://github.com/*",
59+
"https://gist.github.com/*"
60+
]
4061
}
4162
]
4263
}

0 commit comments

Comments
 (0)