OpenAI-Translator is a browser extension that uses the ChatGPT API for translation.
OpenAI Translator Extension
这是一个使用 ChatGPT API 进行划词翻译、总结、润色、分析、代码解释的浏览器插件。借助了 ChatGPT 强大的翻译能力,它将帮助您更流畅地阅读、编辑外语。
Read more
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "OpenAI Translator", "description": "OpenAI-Translator is a browser extension that uses the ChatGPT API for translation.", "version": "0.4.33", "icons": { "16": "icon.png", "32": "icon.png", "48": "icon.png", "128": "icon.png" }, "options_ui": { "page": "src/browser-extension/options/index.html", "open_in_tab": true }, "action": { "default_icon": "icon.png", "default_popup": "src/browser-extension/popup/index.html" }, "content_scripts": [ { "matches": [ "" ], "all_frames": true, "match_about_blank": true, "js": [ "src/browser-extension/content_script/index.js" ] } ], "background": { "service_worker": "serviceWorker.js", "type": "module" }, "permissions": [ "storage", "contextMenus", "webRequest" ], "commands": { "open-popup": { "suggested_key": { "default": "Ctrl+Shift+Y", "mac": "Command+Shift+Y" }, "description": "Open the popup" } }, "host_permissions": [ "https://*.openai.com/", "https://*.openai.azure.com/", "https://*.ingest.sentry.io/", "*://speech.platform.bing.com/", "https://*.googletagmanager.com/", "https://*.google-analytics.com/", "https://*.minimax.chat/", "https://*.githubusercontent.com/", "https://*.baidu.com/", "https://api-edge.cognitive.microsofttranslator.com/", "https://*.microsoft.com/", "https://*.google.com/", "https://*.googleapis.com/", "https://*.moonshot.cn/", "https://*.volces.com/", "https://*.chatglm.cn/", "https://*.cohere.ai/", "https://*.deepseek.com/" ], "web_accessible_resources": [ { "resources": [ "assets/src/browser-extension/content_script/index-f68c2724.js", "assets/i18n-c52eb1fe.js", "assets/icon-f26fb99d.png", "assets/beams-c1bf9be7.jpg", "assets/wechat-41c8237c.png", "assets/alipay-43e52d72.png", "assets/action-ee50921f.js", "assets/electron-917d39d0.js", "assets/browser-polyfill-9daef89e.js", "assets/index-1ad28767.js", "assets/Translator-d7144077.js", "assets/rocket-d644d67d.gif", "assets/party-popper-86879c45.gif", "assets/KaTeX_AMS-Regular-0cdd387c.woff2", "assets/KaTeX_AMS-Regular-30da91e8.woff", "assets/KaTeX_AMS-Regular-68534840.ttf", "assets/KaTeX_Caligraphic-Bold-de7701e4.woff2", "assets/KaTeX_Caligraphic-Bold-1ae6bd74.woff", "assets/KaTeX_Caligraphic-Bold-07d8e303.ttf", "assets/KaTeX_Caligraphic-Regular-5d53e70a.woff2", "assets/KaTeX_Caligraphic-Regular-3398dd02.woff", "assets/KaTeX_Caligraphic-Regular-ed0b7437.ttf", "assets/KaTeX_Fraktur-Bold-74444efd.woff2", "assets/KaTeX_Fraktur-Bold-9be7ceb8.woff", "assets/KaTeX_Fraktur-Bold-9163df9c.ttf", "assets/KaTeX_Fraktur-Regular-51814d27.woff2", "assets/KaTeX_Fraktur-Regular-5e28753b.woff", "assets/KaTeX_Fraktur-Regular-1e6f9579.ttf", "assets/KaTeX_Main-Bold-0f60d1b8.woff2", "assets/KaTeX_Main-Bold-c76c5d69.woff", "assets/KaTeX_Main-Bold-138ac28d.ttf", "assets/KaTeX_Main-BoldItalic-99cd42a3.woff2", "assets/KaTeX_Main-BoldItalic-a6f7ec0d.woff", "assets/KaTeX_Main-BoldItalic-70ee1f64.ttf", "assets/KaTeX_Main-Italic-97479ca6.woff2", "assets/KaTeX_Main-Italic-f1d6ef86.woff", "assets/KaTeX_Main-Italic-0d85ae7c.ttf", "assets/KaTeX_Main-Regular-c2342cd8.woff2", "assets/KaTeX_Main-Regular-c6368d87.woff", "assets/KaTeX_Main-Regular-d0332f52.ttf", "assets/KaTeX_Math-BoldItalic-dc47344d.woff2", "assets/KaTeX_Math-BoldItalic-850c0af5.woff", "assets/KaTeX_Math-BoldItalic-f9377ab0.ttf", "assets/KaTeX_Math-Italic-7af58c5e.woff2", "assets/KaTeX_Math-Italic-8a8d2445.woff", "assets/KaTeX_Math-Italic-08ce98e5.ttf", "assets/KaTeX_SansSerif-Bold-e99ae511.woff2", "assets/KaTeX_SansSerif-Bold-ece03cfd.woff", "assets/KaTeX_SansSerif-Bold-1ece03f7.ttf", "assets/KaTeX_SansSerif-Italic-00b26ac8.woff2", "assets/KaTeX_SansSerif-Italic-91ee6750.woff", "assets/KaTeX_SansSerif-Italic-3931dd81.ttf", "assets/KaTeX_SansSerif-Regular-68e8c73e.woff2", "assets/KaTeX_SansSerif-Regular-11e4dc8a.woff", "assets/KaTeX_SansSerif-Regular-f36ea897.ttf", "assets/KaTeX_Script-Regular-036d4e95.woff2", "assets/KaTeX_Script-Regular-d96cdf2b.woff", "assets/KaTeX_Script-Regular-1c67f068.ttf", "assets/KaTeX_Size1-Regular-6b47c401.woff2", "assets/KaTeX_Size1-Regular-c943cc98.woff", "assets/KaTeX_Size1-Regular-95b6d2f1.ttf", "assets/KaTeX_Size2-Regular-d04c5421.woff2", "assets/KaTeX_Size2-Regular-2014c523.woff", "assets/KaTeX_Size2-Regular-a6b2099f.ttf", "assets/KaTeX_Size3-Regular-6ab6b62e.woff", "assets/KaTeX_Size3-Regular-500e04d5.ttf", "assets/KaTeX_Size4-Regular-a4af7d41.woff2", "assets/KaTeX_Size4-Regular-99f9c675.woff", "assets/KaTeX_Size4-Regular-c647367d.ttf", "assets/KaTeX_Typewriter-Regular-71d517d6.woff2", "assets/KaTeX_Typewriter-Regular-e14fed02.woff", "assets/KaTeX_Typewriter-Regular-f01f3e87.ttf", "assets/vocabulary-ee6eab40.js", "assets/token-1f0f9f4f.js", "assets/i18n-d2c343f9.css", "assets/Translator-47b1431b.css" ], "matches": [ "" ] } ]}
Read more