{ "manifest_version": 3, "default_locale": "zh_CN", "version": "26.6.0", "permissions": [ "storage", "activeTab", "contextMenus", "scripting", "cookies" ], "web_accessible_resources": [ { "resources": [ "content/assets/i18n/en.json", "content/assets/i18n/zhHans.json", "content/assets/i18n/zhHant.json", "content/assets/i18n/es.json", "content/assets/i18n/fr.json", "content/assets/i18n/de.json", "content/assets/i18n/ja.json", "content/assets/i18n/ko.json", "content/assets/i18n/pt.json", "content/assets/i18n/ru.json", "content/assets/js/page-inject.js" ], "matches": [ "", "file:///*", "*://*/*" ] } ], "content_scripts": [ { "js": [ "content/polyfills.js", "content/main.js" ], "css": [ "content/styles.css" ], "matches": [ "", "file:///*", "*://*/*" ], "exclude_matches": [ "https://*/*dicts/MiniDictSearch2*" ], "run_at": "document_end", "all_frames": true, "match_about_blank": true, "match_origin_as_fallback": true }, { "js": [ "content/assets/js/subtitle-bootstrap.js" ], "matches": [ "", "file:///*", "*://*/*" ], "run_at": "document_start", "all_frames": true, "match_about_blank": true, "match_origin_as_fallback": true } ], "background": { "service_worker": "serviceWorker.js" }, "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'" }, "commands": { "_execute_action": { "suggested_key": { "default": "Alt+N" }, "description": "popup" }, "toggleTranslatePage": { "suggested_key": { "default": "Alt+T" }, "description": "__MSG_toggleTranslatePage__" }, "toggleWordHintPage": { "description": "__MSG_toggleWordHintPage__" }, "toggleCustomize": { "description": "__MSG_toggleCustomize__" }, "selectCaptureWord": { "description": "__MSG_selectCaptureWord__" }, "hoverTranslateLine": { "description": "__MSG_hoverTranslateLine__" }, "speakSelectSentence": { "suggested_key": { "default": "Alt+R" }, "description": "__MSG_speakSelectSentence__" }, "toggleShowTranslateOnly": { "description": "__MSG_toggleShowTranslateOnly__" } }, "name": "__MSG_brandName_en__", "description": "__MSG_brandDescription_en__", "options_page": "main/index.html?#/options", "action": { "default_popup": "main/index.html?#/popup" }, "icons": { "16": "icons/icon-512.png", "32": "icons/icon-512.png", "48": "icons/icon-512.png", "128": "icons/icon-512.png", "256": "icons/icon-512.png", "512": "icons/icon-512.png" } }