-
Notifications
You must be signed in to change notification settings - Fork 72
/
manifest.json
94 lines (94 loc) · 1.87 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "v2ex plus",
"version": "2.1.2",
"manifest_version": 3,
"description": "优雅便捷的 V2EX 扩展",
"background": {
"service_worker": "background.js"
},
"permissions": [
"alarms",
"notifications",
"storage",
"declarativeNetRequest",
"contextMenus"
],
"host_permissions": [
"*://*.v2ex.com/*",
"*://*.imgur.com/*",
"*://*.sinaimg.cn/*"
],
"content_scripts": [
{
"matches": [
"*://*.v2ex.com/*"
],
"js": [
"./inject/base64decode.js",
"./inject/dbclickToTop.js",
"./inject/sov2ex.js"
]
},
{
"matches": [
"*://*.v2ex.com/",
"*://*.v2ex.com/?tab=*",
"*://*.v2ex.com/go/*",
"*://*.v2ex.com/my/*",
"*://*.v2ex.com/recent*",
"*://*.v2ex.com/changes*"
],
"css": [
"./inject/topicList/index.css",
"./inject/userinfo/index.css"
],
"js": [
"./inject/topicList/index.js",
"./inject/userinfo/index.js"
]
},
{
"matches": [
"*://*.v2ex.com/t/*"
],
"css": [
"./inject/topicDetail/index.css",
"./inject/userinfo/index.css"
],
"js": [
"./inject/topicDetail/index.js",
"./inject/userinfo/index.js",
"./spider/index.js"
]
}
],
"declarative_net_request": {
"rule_resources": [
{
"id": "weibo",
"enabled": true,
"path": "rules.json"
}
]
},
"action": {
"default_icon": "icon/icon38.png"
},
"options_ui": {
"page": "pages/options/index.html",
"open_in_tab": true
},
"icons": {
"16": "icon/icon16.png",
"48": "icon/icon48.png",
"128": "icon/icon128.png"
},
"commands": {
"newV2EX": {
"description": "打开 V2EX"
},
"newMsg": {
"description": "查看 V2EX 消息"
}
}
}