-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.json
47 lines (47 loc) · 1.02 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
{
"manifest_version": 3,
"name": "translateThenSearch",
"version": "1.2",
"description": "Translate query into English with one click and search",
"icons": {
"16": "images/icon-16.png",
"32": "images/icon-32.png",
"48": "images/icon-48.png",
"128": "images/icon-128.png"
},
"content_scripts": [
{
"js": [
"scripts/content.js"
],
"css": [
"scripts/content.css"
],
"matches": [
"https://www.google.com.hk/*",
"https://www.google.com/*",
"https://bard.google.com/*"
],
"run_at": "document_end"
}
],
"permissions": [
"tabs",
"contextMenus"
],
"background": {
"service_worker": "background.js"
},
"host_permissions": [
"http://124.220.81.24:8080"
],
"commands": {
"translate-then-search": {
"suggested_key": {
"default": "Ctrl+Shift+1",
"mac": "Command+Shift+1"
},
"description": "把搜索框中的中文翻译成英文,再用google、bard搜索"
}
}
}