-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.json
105 lines (100 loc) · 3.51 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
// Required
"manifest_version": 2,
"name": "2020",
"version": "0.1",
"description": "Every 20 minutes alert user and force them to avert their eyes",
"permissions": ["alarms", "declarativeContent", "storage", "activeTab"],
"background": {
"scripts": ["helper.js", "background.js"],
"persistent": false
},
"content_scripts": [
{
"matches": ["*://*/*"],
"js": ["./content.js"]
}
],
"page_action": {
"default_popup": "popup.html"
// add default icons and icons
}
}
// Recommended
// "action": {
// "default_icon": {
// "16": "images/icon16.png",
// "24": "images/icon24.png",
// "32": "images/icon32.png"
// },
// "default_title": "Click Me", // optional, shown in tooltip
// "default_popup": "popup.html" // optional
// },
// "default_locale": "en",
// "description": "A plain text description",
// "icons": {...},
// // Optional
// "author": ...,
// "automation": ...,
// "background": {
// // Required
// "service_worker": "background.js",
// // Optional
// "type": ...
// },
// "chrome_settings_overrides": {...},
// "chrome_url_overrides": {...},
// "commands": {...},
// "content_capabilities": ...,
// "content_scripts": [{...}],
// "content_security_policy": {...},
// "converted_from_user_script": ...,
// "cross_origin_embedder_policy": {"value": "require-corp"},
// "cross_origin_opener_policy": {"value": "same-origin"},
// "current_locale": ...,
// "declarative_net_request": ...,
// "devtools_page": "devtools.html",
// "differential_fingerprint": ...,
// "event_rules": [{...}],
// "externally_connectable": {
// "matches": ["*://*.example.com/*"]
// },
// "file_browser_handlers": [...],
// "file_system_provider_capabilities": {
// "configurable": true,
// "multiple_mounts": true,
// "source": "network"
// },
// "homepage_url": "https://path/to/homepage",
// "host_permissions": [...],
// "import": [{"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}],
// "incognito": "spanning, split, or not_allowed",
// "input_components": ...,
// "key": "publicKey",
// "minimum_chrome_version": "versionString",
// "nacl_modules": [...],
// "natively_connectable": ...,
// "oauth2": ...,
// "offline_enabled": true,
// "omnibox": {
// "keyword": "aString"
// },
// "optional_permissions": ["tabs"],
// "options_page": "options.html",
// "options_ui": {
// "page": "options.html"
// },
// "permissions": ["tabs"],
// "platforms": ...,
// "replacement_web_app": ...,
// "requirements": {...},
// "sandbox": [...],
// "short_name": "Short Name",
// "storage": {
// "managed_schema": "schema.json"
// },
// "system_indicator": ...,
// "tts_engine": {...},
// "update_url": "https://path/to/updateInfo.xml",
// "version_name": "aString",
// "web_accessible_resources": [...]