Subtitle Translator - YouTube 版本历史 - 2 个版本
Subtitle Translator - YouTube 作者: canbmaj7
Subtitle Translator - YouTube 版本历史 - 2 个版本
小心旧版本!显示这些版本是为了测试和参考目的。您应该始终使用附加组件的最新版本。
最新版本
版本 0.6.0
发布于 2026年11月11日 - 117 KB适用于 Firefox 140.0 及更高版本No source code submission is needed: the package is plain, unminified, unbundled JavaScript and matches https://github.com/canbmaj7/subtitle-translator-for-youtube (branch main, version 0.6.0). Firefox build:node scripts/build-firefox.cjs; it copies extension/ and only changes manifest.json (background.service_worker -> background.scripts event page, removes minimum_chrome_version, adds browser_specific_settings with the add-on id and data_collection_permissions).
What it does: translates the captions of the YouTube video being watched. It reads caption text on youtube.com and sends it to translate.googleapis.com by default, or to generativelanguage.googleapis.com / api.groq.com only if the user pastes their own API key in the popup (then the sanitized video title, channel, a short description excerpt, a short AI-generated video summary and nearby sentences are included as translation context). New in 0.6.0: the user may also type ONE custom OpenAI-compatible HTTPS endpoint in the popup; the extension then asks for the optional host permission for that single address only (permissions.request, triggered by a user click) and sends captions only there. optional_host_permissions "https:///" exists solely for that runtime request and is never requested automatically. No account is needed to test the default path. No remote code, no analytics, API keys stay in storage.local.
To test:
1. Open any YouTube video with captions, e.g. https://www.youtube.com/watch?v=x7X9w_GIm1s
2. Right-click (or Shift+click) the extension's button next to the CC button in the player control bar to open the settings panel; open "Language" and pick a target language. Translated captions appear over the video.
3. Left-click the button (or press Alt+Shift+T) to toggle translation on/off.
4. Optional: popup -> Glossary, e.g. one rule per line:frameworkkeeps a term untranslated (applies to AI engines only).源代码遵循 MIT 许可证 发布