-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json
62 lines (62 loc) · 1.78 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
{
"manifest_version": 2,
"name": "数据信息采集",
"version": "1.0.0",
"description": "数据信息采集",
"author": "数据信息采集",
"content_security_policy": "script-src 'self'; object-src 'self'; script-src-elem 'self'",
"icons":{
"16": "img/icon.png",
"48": "img/icon.png",
"128": "img/icon.png"
},
"browser_action": {
"default_icon": "img/icon.png",
"default_title": "数据信息采集"
},
// "page_action": {
// "default_icon": "img/icon.png",
// "default_title": "数据信息采集",
// "default_popup": "main.html"
// },
"background" : {
"scripts":["js/jquery-1.8.3.js", "js/background.js", "js/main.js", "js/enum.js" ]
// "page": "back.html"
},
"permissions": [
"http://*.1688.com/",
"http://*.alibaba.com/",
"https://*.taobao.com/",
"https://*.taobao.global/",
"http://*.taobao.com/",
"http://*/",
"https://*/", // 设置 所有的http 都可以进行请求
"contextMenus", // 右键菜单
"tabs", // 标签
"webRequest", // web请求
"webRequestBlocking" // 阻塞式web请求
],
"content_scripts":[
{
"matches": [
"https://www.baidu.com/*",
"https://buyertrade.taobao.com/trade/itemlist/*",
"https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm?*"
],
"js": [
"js/content-script.js",
"js/jquery-1.8.3.js",
"js/main.js",
"js/dom.js",
"js/enum.js",
"js/vue.min.js"
],
"run_at": "document_end",
"all_frames": true
}
],
"web_accessible_resources": [
"main.html",
"main.js"
]
}