1{
2 // Required
3 "manifest_version": 2,
4 "name": "My Extension",
5 "version": "versionString",
6
7 // Recommended
8 "default_locale": "en",
9 "description": "A plain text description",
10 "icons": {...},
11
12 // Pick one (or none)
13 "browser_action": {...},
14 "page_action": {...},
15
16 // Optional
17 "action": ...,
18 "author": ...,
19 "automation": ...,
20 "background": {
21 // Recommended
22 "persistent": false,
23 // Optional
24 "service_worker":
25 },
26 "chrome_settings_overrides": {...},
27 "chrome_url_overrides": {...},
28 "commands": {...},
29 "content_capabilities": ...,
30 "content_scripts": [{...}],
31 "content_security_policy": "policyString",
32 "converted_from_user_script": ...,
33 "current_locale": ...,
34 "declarative_net_request": ...,
35 "devtools_page": "devtools.html",
36 "differential_fingerprint": ...,
37 "event_rules": [{...}],
38 "externally_connectable": {
39 "matches": ["*://*.example.com/*"]
40 },
41 "file_browser_handlers": [...],
42 "file_system_provider_capabilities": {
43 "configurable": true,
44 "multiple_mounts": true,
45 "source": "network"
46 },
47 "homepage_url": "http://path/to/homepage",
48 "host_permissions": ...,
49 "import": [{"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}],
50 "incognito": "spanning, split, or not_allowed",
51 "input_components": ...,
52 "key": "publicKey",
53 "minimum_chrome_version": "versionString",
54 "nacl_modules": [...],
55 "natively_connectable": ...,
56 "oauth2": ...,
57 "offline_enabled": true,
58 "omnibox": {
59 "keyword": "aString"
60 },
61 "optional_permissions": ["tabs"],
62 "options_page": "options.html",
63 "options_ui": {
64 "chrome_style": true,
65 "page": "options.html"
66 },
67 "permissions": ["tabs"],
68 "platforms": ...,
69 "replacement_web_app": ...,
70 "requirements": {...},
71 "sandbox": [...],
72 "short_name": "Short Name",
73 "signature": ...,
74 "spellcheck": ...,
75 "storage": {
76 "managed_schema": "schema.json"
77 },
78 "system_indicator": ...,
79 "tts_engine": {...},
80 "update_url": "http://path/to/updateInfo.xml",
81 "version_name": "aString",
82 "web_accessible_resources": [...]
83}
1//manifest.json
2{
3 "name": "My chrome extension",
4 "version": "1.0",
5 "manifest_version": 2,
6 "content_scripts": [
7 {
8 "matches": ["<all_urls>"],
9 "js": ["./src/content.js"]
10 }
11 ]
12}
1{
2 // Required
3 "manifest_version": 3,
4 "name": "My Extension",
5 "version": "versionString",
6
7 // Recommended
8 "action": {...},
9 "default_locale": "en",
10 "description": "A plain text description",
11 "icons": {...},
12
13 // Optional
14 "action": ...,
15 "author": ...,
16 "automation": ...,
17 "background": {
18 // Required
19 "service_worker":
20 },
21 "chrome_settings_overrides": {...},
22 "chrome_url_overrides": {...},
23 "commands": {...},
24 "content_capabilities": ...,
25 "content_scripts": [{...}],
26 "content_security_policy": "policyString",
27 "converted_from_user_script": ...,
28 "current_locale": ...,
29 "declarative_net_request": ...,
30 "devtools_page": "devtools.html",
31 "differential_fingerprint": ...,
32 "event_rules": [{...}],
33 "externally_connectable": {
34 "matches": ["*://*.example.com/*"]
35 },
36 "file_browser_handlers": [...],
37 "file_system_provider_capabilities": {
38 "configurable": true,
39 "multiple_mounts": true,
40 "source": "network"
41 },
42 "homepage_url": "http://path/to/homepage",
43 "host_permissions": [...],
44 "import": [{"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}],
45 "incognito": "spanning, split, or not_allowed",
46 "input_components": ...,
47 "key": "publicKey",
48 "minimum_chrome_version": "versionString",
49 "nacl_modules": [...],
50 "natively_connectable": ...,
51 "oauth2": ...,
52 "offline_enabled": true,
53 "omnibox": {
54 "keyword": "aString"
55 },
56 "optional_permissions": ["tabs"],
57 "options_page": "options.html",
58 "options_ui": {
59 "chrome_style": true,
60 "page": "options.html"
61 },
62 "permissions": ["tabs"],
63 "platforms": ...,
64 "replacement_web_app": ...,
65 "requirements": {...},
66 "sandbox": [...],
67 "short_name": "Short Name",
68 "storage": {
69 "managed_schema": "schema.json"
70 },
71 "system_indicator": ...,
72 "tts_engine": {...},
73 "update_url": "http://path/to/updateInfo.xml",
74 "version_name": "aString",
75 "web_accessible_resources": [...]
76}