Vocab
Translate highlighted text and store the translation in a glossary book. A random glossary card shows when opening a web page.
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version": 3,
"name": "__MSG_appName__",
"version": "3.7.1",
"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": {
"service_worker": "service-worker.js"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"run_at": "document_idle",
"all_frames": true,
"js": [
"content/content.js"
]
}
],
"permissions": [
"storage",
"unlimitedStorage",
"contextMenus",
"sidePanel"
],
"omnibox": {
"keyword": "vb"
},
"action": {
"default_title": "Vocab",
"default_popup": "pages/popover/index.html",
"default_icon": {
"16": "assets/icons/icon-16.png",
"48": "assets/icons/icon-48.png",
"128": "assets/icons/icon-128.png"
}
},
"options_ui": {
"page": "pages/settings/index.html",
"open_in_tab": true
},
"content_security_policy": {
"extension_pages": "script-src 'self';object-src 'self';"
}
}