-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.json
100 lines (100 loc) · 2.61 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
95
96
97
98
99
100
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "0.0.3",
"author": "Fuat Karakus",
"homepage_url": "https://github.com/fuatkarakus/translate-extension",
"default_locale": "en",
"icons": {
"16": "icons/logo-16.png",
"32": "icons/logo-32.png",
"48": "icons/logo-48.png",
"96": "icons/logo-96.png"
},
"options_ui": {
"page": "src/options/options.html"
},
"background": {
"scripts": [
"src/config.js",
"src/background/translate.js"
]
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
],
"css": [
"src/content/bubble.css"
],
"js": [
"src/config.js",
"src/content/modal.js",
"src/content/modal_iframe.js",
"src/content/content.js",
"src/content/bubble.js",
"src/l10n.js"
],
"run_at": "document_idle",
"all_frames": false
},
{
"matches": [
"*://translate.google.com/*",
"*://translate.google.cn/*",
"*://translate.googleusercontent.com/*",
"*://translate.googleusercontent.cn/*"
],
"js": [
"src/content/translate_frame.js"
],
"run_at": "document_end",
"all_frames": true
}
],
"commands": {
"translate": {
"suggested_key": {
"default": "Ctrl+Shift+1"
},
"description": "Translate selected text"
},
"tts": {
"suggested_key": {
"default": "Ctrl+Shift+2"
},
"description": "TTS selected text"
},
"translatePage": {
"suggested_key": {
"default": "Ctrl+Shift+3"
},
"description": "Translate page"
}
},
"permissions": [
"http://*/*",
"https://*/*",
"contextMenus",
"storage",
"webRequest",
"webRequestBlocking",
"tabs"
],
"web_accessible_resources": [
"icons/help.png",
"icons/loading.gif",
"supported_languages.json",
"src/content/modal.html",
"src/content/modal.css",
"src/content/modal_iframe.html"
],
"applications": {
"gecko": {
"id": "[email protected]"
}
}
}