forked from FilipePS/Traduzir-paginas-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chrome_manifest.json
106 lines (97 loc) · 3.1 KB
/
chrome_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
{
"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",
"commands": {
"hotkey-toggle-translation": {
"suggested_key": {
"default": "Alt+T"
},
"description": "__MSG_lblSwitchTranslatedAndOriginal__"
},
"hotkey-translate-selected-text": {
"suggested_key": {
"default": "Alt+S"
},
"description": "__MSG_msgTranslateSelectedText__"
},
"hotkey-swap-page-translation-service": {
"suggested_key": {
"default": "Alt+Q"
},
"description": "__MSG_swapTranslationService__"
}
},
"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__"
},
"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"]
}
}