Smart Translator
Simple use of the extension: select any text on the website and translate it or listen to its pronunciation with one click
Additional files are visible only to premium users
manifest.json
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.0.3",
"default_locale": "en",
"icons": {
"512": "icons/translator.png"
},
"options_ui": {
"page": "src/options/options.html"
},
"background": {
"scripts": [
"src/config.js",
"src/background/translate.js"
]
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
],
"js": [
"src/config.js",
"src/content/modal.js",
"src/content/modal_iframe.js",
"src/content/content.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"
],
"update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"
}