{ // Required "manifest_version": 2, "name": "My Extension", "version": "versionString", // Recommended "default_locale": "en", "description": "A plain text description", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, // Pick one (or none) "browser_action": { "default_icon": { // optional "16": "images/icon16.png", // optional "24": "images/icon24.png", // optional "32": "images/icon32.png" // optional }, "default_title": "Google Mail", // optional, shown in tooltip "default_popup": "popup.html" // optional }, "page_action": { "default_icon": { // optional "16": "images/icon16.png", // optional "24": "images/icon24.png", // optional "32": "images/icon32.png" // optional }, "default_title": "Google Mail", // optional; shown in tooltip "default_popup": "popup.html" // optional }, // Optional "action": ..., "author": ..., "automation": ..., "background": { "scripts": [ "backgroundContextMenus.js", "backgroundOmniBox.js", "backgroundOauth.js" ], "persistent": false, }, "chrome_settings_overrides": { "homepage": "http://www.homepage.com", "search_provider": { "name": "name.__MSG_url_domain__", "keyword": "keyword.__MSG_url_domain__", "search_url": "http://www.foo.__MSG_url_domain__/s?q={searchTerms}", "favicon_url": "http://www.foo.__MSG_url_domain__/favicon.ico", "suggest_url": "http://www.foo.__MSG_url_domain__/suggest?q={searchTerms}", "instant_url": "http://www.foo.__MSG_url_domain__/instant?q={searchTerms}", "image_url": "http://www.foo.__MSG_url_domain__/image?q={searchTerms}", "search_url_post_params": "search_lang=__MSG_url_domain__", "suggest_url_post_params": "suggest_lang=__MSG_url_domain__", "instant_url_post_params": "instant_lang=__MSG_url_domain__", "image_url_post_params": "image_lang=__MSG_url_domain__", "alternate_urls": [ "http://www.moo.__MSG_url_domain__/s?q={searchTerms}", "http://www.noo.__MSG_url_domain__/s?q={searchTerms}" ], "encoding": "UTF-8", "is_default": true }, "startup_pages": ["http://www.startup.com"] }, "chrome_url_overrides": { "PAGE_TO_OVERRIDE": "myPage.html" }, "commands": { "run-foo": { "suggested_key": { "default": "Ctrl+Shift+Y", "mac": "Command+Shift+Y" }, "description": "Run \"foo\" on the current page." }, "_execute_action": { "suggested_key": { "windows": "Ctrl+Shift+Y", "mac": "Command+Shift+Y", "chromeos": "Ctrl+Shift+U", "linux": "Ctrl+Shift+J" } } }, "content_capabilities": ..., "content_scripts": [{ "matches": ["http://*.nytimes.com/*"], "css": ["myStyles.css"], "js": ["contentScript.js"] } ... ], "content_security_policy": "policyString", "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": [{ "event": "declarativeContent.onPageChanged", "actions": [{ "type": "declarativeContent.ShowPageAction" }], "conditions": [{ "type": "declarativeContent.PageStateMatcher", "css": ["video"] }] } ... ], "externally_connectable": { "matches": ["*://*.example.com/*"] }, "file_browser_handlers": [...], "file_system_provider_capabilities": { "configurable": true, "multiple_mounts": true, "source": "network" }, "homepage_url": "http://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": { "chrome_style": true, "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": "http://path/to/updateInfo.xml", "version_name": ..., "web_accessible_resources": [...] }//manifest.json { "name": "My chrome extension", "version": "1.0", "manifest_version": 2, "content_scripts": [ { "matches": ["<all_urls>"], "js": ["./src/content.js"] } ] }{ //File name should be manifest.json "manifest_version":3, "name":"VScoder", "version":"1.0", "description":"It is a very nice app", "displayName":"VSapp", "author":[ "name":"VScoder" ], "action":[ "default_popup":"Index.html", "default_icon":"Icon.png" ], "content_scripts":[{"js":["Script.js"], "css":["Stylesheet.css"], "matches":["https://*/*"]}] }