-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.json
60 lines (52 loc) · 1.31 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "12306 Helpers",
"version": "1.0",
"manifest_version": 2,
"background": {"page": "background.html"},
"web_accessible_resources": [
"inject/login_pagehack.js",
"inject/login_dosubmit.js",
"inject/autoquery_pagehack.js",
"inject/confirm_pagehack.js"
],
"permissions": ["contextMenus", "tabs", "*://*.12306.cn/*"],
"browser_action": {
"default_icon": "icon.png",
"default_title": "12306 Login",
"default_popup": "login.html"
},
"icons": {
"48": "icon48.png",
"128": "icon128.png",
"16": "icon16.png"
},
"content_scripts": [
{
"matches":
[
"*://kyfw.12306.cn/otn/login/init*"
],
"run_at": "document_idle",
"js": ["jquery-1.4.2.min.js", "shared.js", "12306login.js"],
"all_frames": true
},
{
"matches":
[
"*://kyfw.12306.cn/otn/leftTicket/init*"
],
"run_at": "document_idle",
"js": ["jquery-1.4.2.min.js", "shared.js", "autoquery.js"],
"all_frames": true
},
{
"matches":
[
"*://kyfw.12306.cn/otn/confirmPassenger/initDc*"
],
"run_at": "document_idle",
"js": ["jquery-1.4.2.min.js", "shared.js", "confirmpage.js"],
"all_frames": true
}
]
}