mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx.git
synced 2025-05-10 06:01:23 +08:00
* feat: 为chrome拓展添加手动调用翻译的功能
* feat: add SC-BOX-TRANSLATE-API-AVAILABLE message
* refactor: move content script logic to core.js
* feat: add context menu for translating pages
* chore: 🤖 使用extension.js
* chore: update package metadata
* chore: ensure context menu creation on extension install
* feat: add toggle translation functionality
* feat: add support for dynamic localization based on tab URL
* feat: add Chinese translation for Star Citizen browser extension
* docs: update README with new API usage instructions
* refactor: update translation logic to append original values
* typescript support
* feat: add manual URL handling for localization
* feat: add postMessage for toggling SC-BOX translate
* feat: add translation toggle event to postMessage
* feat: add translation status and message handling
* refactor: optimize localization version logging
60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "星际公民盒子浏览器拓展",
|
|
"version": "0.0.11",
|
|
"description": "为星际公民网站及工具站提供汉化",
|
|
"author": "xkeyC",
|
|
"icons": {
|
|
"16": "icons/icon.png",
|
|
"48": "icons/icon.png",
|
|
"192": "icons/icon.png"
|
|
},
|
|
"host_permissions": [
|
|
"https://git.scbox.xkeyc.cn/*"
|
|
],
|
|
"permissions": [
|
|
"storage",
|
|
"contextMenus"
|
|
],
|
|
"action": {
|
|
"default_popup": "action/default_popup.html"
|
|
},
|
|
"background": {
|
|
"service_worker": "background/service_worker.js"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": [
|
|
"*://*/*"
|
|
],
|
|
"exclude_matches": [
|
|
"https://robertsspaceindustries.com/spectrum/*"
|
|
],
|
|
"js": [
|
|
"content_scripts/content-0.js"
|
|
],
|
|
"run_at": "document_end",
|
|
"css": []
|
|
},
|
|
{
|
|
"matches": [
|
|
"https://www.erkul.games/*"
|
|
],
|
|
"js": [
|
|
"content_scripts/content-1.js"
|
|
],
|
|
"run_at": "document_end",
|
|
"css": []
|
|
},
|
|
{
|
|
"matches": [
|
|
"https://robertsspaceindustries.com/*"
|
|
],
|
|
"js": [
|
|
"content_scripts/content-2.js"
|
|
],
|
|
"run_at": "document_idle",
|
|
"css": []
|
|
}
|
|
]
|
|
} |