GPT帮我翻译
使用ChatGPT划词翻译 1. 选中文本右键菜单“GPT帮我翻译” > ”翻译为中文”/“翻译为英文”,翻译选中文本。 2. 图片上右键菜单“翻译图片为中文“,可将图片中文字翻译为中文。 2. 快捷键 Cmd/Ctrl + M 翻译为中文。 3. 快捷键…
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version": 3,
"name": "GPT帮我翻译",
"version": "2.0.2",
"action": {
"default_icon": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
}
},
"permissions": [
"contextMenus",
"storage",
"cookies"
],
"host_permissions": [
"https://chat.openai.com/*"
],
"icons": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
},
"background": {
"service_worker": "background.js",
"type": "module"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"content-script.js"
],
"css": [
"content-style.css"
]
}
],
"commands": {
"translate-zh": {
"suggested_key": {
"default": "Ctrl+M",
"mac": "Command+M"
},
"description": "翻译为中文"
},
"translate-en": {
"suggested_key": {
"default": "Ctrl+B",
"mac": "Command+B"
},
"description": "翻译为英文"
}
},
"options_page": "options.html"
}