码迷,mamicode.com
首页 > Web开发 > 详细

manifest.json文件介绍

时间:2018-05-11 10:43:49      阅读:395      评论:0      收藏:0      [点我收藏+]

标签:mission   author   conf   rom   acl   set   esc   设置   LLC   

{
  // 必须
  "manifest_version": 2,  // 清单文件的版本,这个必须写,而且必须是2
  "name": "My Extension", //
  "version": "versionString",

  // 推荐
  "default_locale": "en",
  "description": "A plain text description",
  "icons": {...},

  // 设置其中一个(或者不设置)
  "browser_action": {...},
  "page_action": {...},

  // 选项
  "action": ...,
  "author": ...,
  "automation": ...,
  "background": {
    // 推荐
    "persistent": false
  },
  "background_page": ...,
  "chrome_settings_overrides": {...},
  "chrome_ui_overrides": {
    "bookmarks_ui": {
      "remove_bookmark_shortcut": true,
      "remove_button": true
    }
  },
  "chrome_url_overrides": {...},
  "commands": {...},
  "content_capabilities": ...,
  "content_scripts": [{...}],
  "content_security_policy": "policyString",
  "converted_from_user_script": ...,
  "current_locale": ...,
  "declarative_net_request": ...,
  "devtools_page": "devtools.html",
  "event_rules": [{...}],
  "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",
  "import": [{"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}],
  "incognito": "spanning, split, or not_allowed",
  "input_components": ...,
  "key": "publicKey",
  "minimum_chrome_version": "versionString",
  "nacl_modules": [...],
  "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": ...,
  "requirements": {...},
  "sandbox": [...],
  "short_name": "Short Name",
  "signature": ...,
  "spellcheck": ...,
  "storage": {
    "managed_schema": "schema.json"
  },
  "system_indicator": ...,
  "tts_engine": {...},
  "update_url": "http://path/to/updateInfo.xml",
  "version_name": "aString",
  "web_accessible_resources": [...]
}

 

manifest.json文件介绍

标签:mission   author   conf   rom   acl   set   esc   设置   LLC   

原文地址:https://www.cnblogs.com/answercard/p/9023136.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!