-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.json
More file actions
90 lines (89 loc) · 2.15 KB
/
manifest.json
File metadata and controls
90 lines (89 loc) · 2.15 KB
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
{
"manifest_version": 3,
"name": "Translate In Sidepanel",
"short_name": "Trans In Side",
"version": "9.5",
"version_name": "V9.5",
"author": "M Ramzan Ch",
"description": "",
"minimum_chrome_version": "130",
"offline_enabled": true,
"homepage_url": "https://github.com/MegaMind-Solution",
"icons": {
"16": "./src/16.png",
"32": "./src/32.png",
"48": "./src/48.png",
"128": "./src/128.png",
"256": "./src/icon.png"
},
"action": {
"default_popup" : "./option.html",
"default_title": "StartPage",
"default_icon": {
"16": "./src/16.png",
"32": "./src/32.png",
"48": "./src/48.png",
"128": "./src/128.png",
"256": "./src/icon.png"
}
},
"options_ui": {
"browser_style": true,
"page": "./option.html",
"open_in_tab": false
},
"side_panel": { "default_path": "./panel.html" },
"permissions": [
"sidePanel",
"contextMenus",
"storage",
"declarativeNetRequest",
"scripting",
"activeTab",
"tts"
],
"commands": {
"translate-shortcut": {
"suggested_key": { "default": "Alt+T", "mac": "Command+Shift+Y" },
"description": "Translate selected text in Side Panel"
}
},
"host_permissions": [
"https://translate.google.com/*",
"https://*.deepl.com/*",
"https://*.bing.com/*"
],
"background": { "service_worker": "background.js" },
"content_scripts": [
{
"matches": [
"*://translate.google.com/*",
"https://*.deepl.com/*",
"https://*.bing.com/*"
],
"all_frames": true,
"js": ["content.js"],
"css": ["content.css"]
},
{
"matches": ["<all_urls>"],
"js": ["content_bridge.js"],
"css": ["tooltip.css"]
}
],
"web_accessible_resources": [
{
"resources": [
"./src/NotoNastaliqhUrdu.woff2",
"./src/NotoSans.woff2",
"./src/NotoSansDevanagari.woff2"
],
"matches": ["<all_urls>"]
}
],
"declarative_net_request": {
"rule_resources": [
{ "id": "ruleset_1", "enabled": true, "path": "rules.json" }
]
}
}