-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json
43 lines (43 loc) · 1.77 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
{
"name": "jumper",
"version": "1.3",
"description": "make for JNU university from 2013-07-06 to 2013-09-06",
"manifest_version": 2,
// "brower_action": { //对浏览器的操作 //这句真不知是怎样错!原来是差个s!!
// "browser_action": {
// "default_icon": "icon16.png", //小图标不需显示
// "popup": "popup.html"
// },
"permissions": ["tabs", "http://jwc.jnu.edu.cn/*", "http://202.116.0.176/*", "http://jwxt.jnu.edu.cn/*"], //权限,用于定义所需的网络资源
// "permissions": [ "*://*/", "tabs"],
"icons":{
"16": "icon16.png", //不能是19的
"48": "icon48.png",
"128": "icon128.png"
},
"options_page": "options.html", //为插件提供对应的options选项页面,在manifest文件中添加对应的options_page:选项,使用HTML
//"background": {"scripts": ["jquery.min.js", "background.js"], "persistent": false},
"background": { "scripts": ["background.js"] },
"content_scripts" : [
{
"matches": ["http://jwc.jnu.edu.cn/Web/Secure/PaiKeXuanKe/wfrm_XK_XuanKe.aspx", "http://jwxt.jnu.edu.cn/Secure/PaiKeXuanKe/wfrm_XK_XuanKe.aspx"],
"js": ["jquery.min.js", "click.js"],
"all_frames": true //为了iframe frame都响应js
},
{
"matches": ["http://jwc.jnu.edu.cn/Web/Secure/PaiKeXuanKe/wfrm_Xk_ReadMeCn.aspx", "http://jwxt.jnu.edu.cn/Secure/PaiKeXuanKe/wfrm_Xk_ReadMeCn.aspx"],
"js": ["jquery.min.js", "readme_click.js"],
"all_frames": true
},
{
"matches": ["http://jwc.jnu.edu.cn/Web/areaLeft.aspx", "http://jwxt.jnu.edu.cn/areaLeft.aspx"],
"js": ["jquery.min.js", "area-left.js"],
"all_frames": true
},
{
"matches": ["http://jwc.jnu.edu.cn/Web/Secure/Cjgl/Cjgl_Cjcx_XsCxXqCj.aspx", "http://jwxt.jnu.edu.cn/Secure/Cjgl/Cjgl_Cjcx_XsCxXqCj.aspx"],
"js": ["jquery.min.js", "mark.js"],
"all_frames": true
}
]
}