Vocab
translate highlighted text and record the translation in a glossary book
Additional files are visible only to premium users
manifest.json
{
"manifest_version": 2,
"name": "__MSG_appName__",
"version": "1.0.4",
"description": "__MSG_appDesc__",
"default_locale": "en",
"author": "Lu",
"icons": {
"16": "assets/icons/icon-16.png",
"48": "assets/icons/icon-48.png",
"128": "assets/icons/icon-128.png"
},
"background": {
"persistent": true,
"page": "background/background.html"
},
"permissions": [
"storage",
"unlimitedStorage",
"contextMenus"
],
"omnibox": {
"keyword": "vb"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"common/constants.js",
"common/utils.js",
"content/content.js"
],
"run_at": "document_idle",
"all_frames": true
}
],
"web_accessible_resources": [
"content/translate-modal.html",
"content/translate-modal.css",
"content/card-modal.html",
"content/card-modal.css"
],
"browser_action": {
"default_title": "Vocab",
"default_popup": "popover/popover.html"
},
"content_security_policy": "script-src 'self';object-src 'self';"
}