forked from FilipePS/Traduzir-paginas-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.json
143 lines (132 loc) · 4.24 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"manifest_version": 2,
"default_locale": "en",
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "9.5.1",
"homepage_url": "https://github.com/FilipePS/Traduzir-paginas-web",
"browser_specific_settings": {
"gecko": {
"id": "{036a55b4-5e72-4d05-a06c-cba2dfcc134a}",
"strict_min_version": "63.0"
}
},
"commands": {
"hotkey-toggle-translation": {
"suggested_key": {
"default": "Ctrl+Alt+T"
},
"description": "__MSG_lblSwitchTranslatedAndOriginal__"
},
"hotkey-translate-selected-text": {
"suggested_key": {
"default": "Ctrl+Alt+S"
},
"description": "__MSG_msgTranslateSelectedText__"
},
"hotkey-swap-page-translation-service": {
"suggested_key": {
"default": "Ctrl+Alt+Q"
},
"description": "__MSG_swapTranslationService__"
},
"hotkey-show-original": {
"suggested_key": {
"default": "Shift+Alt+0"
},
"description": "__MSG_lblRestorePageToOriginal__"
},
"hotkey-translate-page-1": {
"suggested_key": {
"default": "Shift+Alt+1"
},
"description": "__MSG_lblTranslatePageToTargetLanguage__ 1"
},
"hotkey-translate-page-2": {
"suggested_key": {
"default": "Shift+Alt+2"
},
"description": "__MSG_lblTranslatePageToTargetLanguage__ 2"
},
"hotkey-translate-page-3": {
"suggested_key": {
"default": "Shift+Alt+3"
},
"description": "__MSG_lblTranslatePageToTargetLanguage__ 3"
}
},
"icons": {
"32": "/icons/icon-32.png",
"64": "/icons/icon-64.png",
"128": "/icons/icon-128.png"
},
"permissions": [
"<all_urls>",
"storage",
"activeTab",
"contextMenus",
"webRequest"
],
"optional_permissions": [
"webNavigation"
],
"web_accessible_resources": [
"/icons/icon-32.png",
"/icons/google-translate-32.png",
"/icons/yandex-translate-32.png",
"/icons/swap-32.png",
"/contentScript/css/*"
],
"options_ui": {
"page": "/options/options.html",
"open_in_tab": false,
"browser_style": false
},
"browser_action": {
"browser_style": false,
"default_icon": "/icons/icon-32.png",
"default_title": "__MSG_pageActionTitle__"
},
"page_action": {
"browser_style": false,
"default_icon": "/icons/icon-32.png",
"default_title": "__MSG_pageActionTitle__"
},
"content_scripts": [{
"matches": ["<all_urls>"],
"run_at": "document_start",
"all_frames": false,
"js": ["/contentScript/checkScriptIsInjected.js"]
},
{
"matches": ["<all_urls>"],
"run_at": "document_start",
"all_frames": true,
"match_about_blank": true,
"js": ["/lib/languages.js", "/lib/config.js", "/lib/platformInfo.js"]
},
{
"matches": ["<all_urls>"],
"run_at": "document_end",
"all_frames": true,
"match_about_blank": true,
"js": ["/lib/i18n.js", "/contentScript/showOriginal.js", "/contentScript/pageTranslator.js", "/contentScript/translateSelected.js", "/contentScript/showTranslated.js"]
},
{
"matches": ["<all_urls>"],
"run_at": "document_end",
"all_frames": false,
"js": ["/contentScript/popupMobile.js"]
},
{
"matches": ["https://www.deepl.com/translator*"],
"run_at": "document_end",
"all_frames": false,
"js": ["/contentScript/deepl.js"]
}
],
"background": {
"persistent": true,
"scripts": ["/lib/languages.js", "/lib/config.js", "/lib/platformInfo.js", "/background/translationCache.js", "/background/translationService.js", "/background/textToSpeech.js", "/background/background.js"]
}
}