Polly
A translator for 'En' to 'Zh' or 'Zh' to 'En', based on 'baidu translator'
Additional files are visible only to premium users
manifest.json
{
"name": "Polly",
"version": "0.0.1",
"manifest_version": 2,
"description": "A translator for 'En' to 'Zh' or 'Zh' to 'En', based on 'baidu translator'",
"browser_action": {
"default_title": "polly",
"default_popup": "popup/index.html"
},
"background": {
"scripts": [
"content/sign.js",
"content/axios.min.js",
"background/index.js"
],
"persistent": false
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"css": [
"content/template.css"
],
"js": [
"content/debounce.js",
"content/axios.min.js",
"content/comp_scribe.js",
"content/comp_history.js",
"content/comp_close.js",
"content/comp_sound.js",
"content/comp_dict.js",
"content/comp_trans.js",
"content/comp_notice.js",
"content/comp_word_input.js",
"content/comp_main.js",
"content/index.js"
]
}
],
"omnibox": {
"keyword": ":"
},
"icons": {
"16": "imgs/polly_icons16.png",
"32": "imgs/polly_icons32.png",
"48": "imgs/polly_icons48.png",
"64": "imgs/polly_icons64.png",
"128": "imgs/polly_icons128.png"
},
"content_security_policy": "script-src 'self' 'unsafe-eval' https://cdn.jsdelivr.net; object-src 'self'",
"tts_engine": {
"voices": [
{
"voice_name": "Alice",
"lang": "en-US",
"event_types": [
"start",
"marker",
"end"
]
},
{
"voice_name": "Pat",
"lang": "en-US",
"event_types": [
"end"
]
}
]
},
"permissions": [
"tts",
"ttsEngine",
"tabs",
"cookies",
"https://*/",
"http://*/"
],
"web_accessible_resources": [
"imgs/polly.png",
"imgs/cclose.png",
"imgs/cclose_1.png",
"imgs/close.png",
"imgs/close_1.png",
"imgs/shengyin_01.png",
"imgs/shengyin_02.png"
],
"commands": {
"switch_scribe": {
"suggested_key": {
"default": "Alt+T",
"windows": "Alt+T"
},
"description": "open/off scribe"
}
},
"update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"
}