forked from FilipePS/Traduzir-paginas-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchrome_manifest.json
77 lines (67 loc) · 2 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
{
"manifest_version": 2,
"default_locale": "en",
"name": "__MSG_extensionName__",
"version": "7.4",
"description": "__MSG_extensionDescription__",
"commands": {
"toggle-translation": {
"suggested_key": {
"default": "Alt+T"
},
"description": "Switch between the translated and the original page."
}
},
"icons": {
"32": "icons/google-translate-32.png",
"64": "icons/google-translate-64.png",
"128": "icons/google-translate-128.png"
},
"permissions": [
"<all_urls>",
"storage",
"activeTab",
"contextMenus"
],
"web_accessible_resources": [
"options/options.html",
"options/options.css",
"options/options.js",
"icons/google-translate-32.png",
"icons/yandex-translate-32.png",
"icons/swap-32.png"
],
"options_ui": {
"page": "options/options.html",
"open_in_tab": false,
"browser_style": false,
"chrome_style": false
},
"browser_action": {
"browser_style": false,
"chrome_style": false,
"default_icon": "icons/google-translate-32.png",
"default_title": "__MSG_pageActionTitle__",
"default_popup": "popup/popup.html"
},
"content_scripts": [{
"matches": ["<all_urls>"],
"run_at": "document_start",
"all_frames": true,
"js": ["scripts/backgroundFetch.js"]
}, {
"matches": ["<all_urls>"],
"run_at": "document_end",
"all_frames": true,
"js": ["scripts/showOriginal.js", "scripts/contentScript_google2.js", "scripts/contentScript_yandex2.js", "scripts/translateSelected.js"]
}, {
"matches": ["<all_urls>"],
"run_at": "document_end",
"all_frames": false,
"js": ["scripts/mobile.js"]
}
],
"background": {
"scripts": ["languages.js", "background.js"]
}
}