网易有道翻译
使用比强大更强大的翻译生产力工具——有道翻译,支持阅读、写作时的划词翻译
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version": 2,
"name": "网易有道翻译",
"description": "使用比强大更强大的翻译生产力工具——有道翻译,支持阅读、写作时的划词翻译",
"version": "2.2",
"options_page": "options.html",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"icons": {
"16": "icon.png",
"32": "icon.png",
"48": "icon.png",
"128": "icon.png"
},
"background": {
"persistent": true,
"scripts": [
"js/background.js"
]
},
"content_scripts": [
{
"js": [
"js/content.js",
"js/inject.js"
],
"css": [
"css/content.css"
],
"matches": [
"<all_urls>"
],
"run_at": "document_end"
}
],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'; style-src 'self'",
"permissions": [
"storage",
"activeTab",
"contextMenus"
],
"web_accessible_resources": [
"assets/*",
"js/inject.js"
],
"commands": {
"_execute_browser_action": {
"suggested_key": {
"windows": "Alt+Z",
"mac": "Alt+Z"
},
"description": "open popup.html"
},
"inject-script": {
"suggested_key": {
"windows": "Ctrl+Shift+Y",
"mac": "Command+Shift+Y"
},
"description": "打开划词翻译面板"
}
}
}