|
@@ -1,14 +1,9 @@
|
|
|
{
|
|
|
"update_url": "https://clients2.google.com/service/update2/crx",
|
|
|
- // 清单文件的版本,这个必须写,而且必须是2
|
|
|
"manifest_version": 2,
|
|
|
- // 插件的名称
|
|
|
"name": "wxNoLazy-Chrome",
|
|
|
- // 插件的版本
|
|
|
"version": "1.0.0",
|
|
|
- // 插件描述
|
|
|
"description": "__MSG_pluginDesc__",
|
|
|
- // 图标,一般偷懒全部用一个尺寸的也没问题
|
|
|
"icons":
|
|
|
{
|
|
|
"16": "icons/16.png",
|
|
@@ -22,46 +17,36 @@
|
|
|
"default_title": "__MSG_extensionName__",
|
|
|
"default_popup": "popup.html"
|
|
|
},
|
|
|
- // 会一直常驻的后台JS或后台页面
|
|
|
"background":
|
|
|
{
|
|
|
},
|
|
|
- // 需要直接注入页面的JS
|
|
|
"content_scripts": [
|
|
|
{
|
|
|
- //"matches": ["http://*/*", "https://*/*"],
|
|
|
- // "<all_urls>" 表示匹配所有地址
|
|
|
"matches": ["http://mp.weixin.qq.com/*","https://mp.weixin.qq.com/*"],
|
|
|
- // 多个JS按顺序注入
|
|
|
"js": ["js/index.js"],
|
|
|
- // 代码注入的时间,可选值: "document_start", "document_end", or "document_idle",最后一个表示页面空闲时,默认document_idle
|
|
|
"run_at": "document_end"
|
|
|
}
|
|
|
],
|
|
|
- // 权限申请
|
|
|
"permissions":
|
|
|
[
|
|
|
- "contextMenus", // 右键菜单
|
|
|
- "tabs", // 标签
|
|
|
- "webRequest", // web请求
|
|
|
+ "contextMenus",
|
|
|
+ "tabs",
|
|
|
+ "webRequest",
|
|
|
"webRequestBlocking",
|
|
|
- "storage", // 插件本地存储
|
|
|
- "http://mp.weixin.qq.com/*", // 可以通过executeScript或者insertCSS访问的网站
|
|
|
- "https://mp.weixin.qq.com/*" // 可以通过executeScript或者insertCSS访问的网站
|
|
|
+ "storage",
|
|
|
+ "http://mp.weixin.qq.com/*",
|
|
|
+ "https://mp.weixin.qq.com/*"
|
|
|
],
|
|
|
- // 插件主页
|
|
|
"homepage_url": "http://blog.yoqi.me",
|
|
|
- // Chrome40以前的插件配置页写法
|
|
|
"options_page": "options.html",
|
|
|
- // Chrome40以后的插件配置页写法,如果2个都写,新版Chrome只认后面这一个
|
|
|
+
|
|
|
"options_ui":
|
|
|
{
|
|
|
"page": "options.html",
|
|
|
- // 添加一些默认的样式,推荐使用
|
|
|
+
|
|
|
"chrome_style": true
|
|
|
},
|
|
|
- // 向地址栏注册一个关键字以提供搜索建议,只能设置一个关键字
|
|
|
+
|
|
|
"omnibox": { "keyword" : "Lazy" },
|
|
|
- // 默认语言
|
|
|
"default_locale": "zh_CN"
|
|
|
}
|