-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json
42 lines (42 loc) · 1.11 KB
/
manifest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"name": "<%= EXT_DISPLAY_NAME %>",
"manifest_version": 2,
"version": "<%= @ext_version %>",
"description": "<%= EXT_DESC %>",
"homepage_url": "<%= EXT_URL %>",
"icons": {
<%= EXT_ICONS.map {|s| "\t\t\"#{s}\": \"Icon-#{s}.png\""}.join(",\n") %>
},
"browser_action": {
"default_icon": {
"19": "toolbar-button-icon-chrome.png",
"38": "[email protected]"
},
"default_title": "<%= EXT_DISPLAY_NAME %>",
"default_popup": "popover.html"
},
"background": {
"scripts": ["utils.js","background-chrome.js"],
"persistent": true
},
"content_security_policy": "default-src 'self' 'unsafe-eval' <%= DEX_URL %>",
"content_scripts": [{
"all_frames": true,
"run_at": "document_start",
"js":[
<%= @content_scripts.map {|cs| "\t\t\t\"#{cs}\"" }.join(",\n") %>
],
"matches": [
<%= EXT_WHITELIST.map {|pattern| "\t\t\t\"#{pattern}\""}.join(",\n") %>
]
}],
"web_accessible_resources": [
<%= @extra_resources.map {|r| "\t\t\"#{r}\"" }.join(",\n") %>
],
"permissions": [
"tabs",
"webRequest",
"webRequestBlocking",
<%= EXT_WHITELIST.map {|pattern| "\t\t\"#{pattern}\""}.join(",\n") %>
]
}