-
Notifications
You must be signed in to change notification settings - Fork 2
/
manifest.json
55 lines (55 loc) · 1.25 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
{
"manifest_version": 3,
"name": "TranslatorBao",
"version": "1.0.0",
"author": "kenticny",
"permissions": [
"contextMenus",
"storage"
],
"host_permissions": [
"http://api.fanyi.baidu.com/*"
],
"icons": {
"128": "/popup/icon-128.png"
},
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'",
"sandbox": "sandbox allow-scripts; script-src 'self' 'sha256-gMko9E84OR4/ev++pwenrK2KeTpCP5jlHvI45YTBPyo='"
},
"sandbox": {
"pages": [
"/options/index.html"
]
},
"description": "It's just a Translator if you want",
"action": {
"default_icon": "/popup/icon-128.png",
"default_popup": "/popup/index.html"
},
"background": {
"service_worker": "/background/service_worker.js",
"type": "module"
},
"content_scripts": [{
"matches": ["*://*/*"],
"css": [
"/contentscripts/cs.css"
],
"js": [
"/popup/libs/jquery.min.js",
"/contentscripts/contentscript.js"
]
}],
"commands": {
"_execute_action": {
"suggested_key": {
"windows": "Ctrl+Shift+K",
"mac": "Command+Shift+K",
"chromeos": "Ctrl+Shift+K",
"linux": "Ctrl+Shift+K"
}
}
},
"options_page": "/options/index.html"
}