Shared Sessions for Claude Code
Share a Claude Code session with a link. Teammates join from their own Claude Code and work in it together.
AI driven translator plugin
Translation pending
PluginsJavaScript · CSSGitHub @FutrixDevSelf-installOwner unconfirmed
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Installable projects can be verified without a deployment domain. Use GitHub sign-in for a personal repository, or the repository verification file above for an organization repository.
Ask about other verification options
Loading the full README. The saved excerpt is shown below.
An AI-powered Chrome browser translation extension that supports selection translation and full-page translation, making web translation smarter and more natural.
Smart Translation
• Math Formula Preservation: Automatically detects and preserves MathJax/KaTeX formulas without translation
• Code Block Protection: Code snippets remain untouched during translation
• Elegant Menu Translation: Sidebar translations align perfectly with original text (not icons)
• Custom Prompts: Customize translation style with your own prompts (formal, casual, technical, etc.)Read the full README ↗AI translation for web pages, PDFs, manga and subtitles, in one Chrome extension. Read web pages, PDFs, ebooks, manga and comics with the original and the translation side by side, watch YouTube with dual subtitles, and translate the text in any image (OCR). Pick one of three engines: Chrome's free on-device translator, the AI you trust — cloud or local models, with your own key — or Blab Translation, included with a subscription, no key needed.
Esc to clear inline translations, or right-click a paragraph/translation to cancel itAlt+T
(rebind it at chrome://extensions/shortcuts)Esc to close itgit clone https://github.com/FutrixDev/translator.git
cd translator
chrome://extensions/translator folderhttps://api.openai.com/v1/chat/completionsgpt-4.1-mini (pick from the dropdown, or type any model your endpoint serves)Esc or click × to close/clearShift)Esc to clear inline translations, or right-click a paragraph/translation to cancel itMethod 1: Float Ball
Method 2: Extension Menu
Method 3: Context Menu
After translation:
On a page, open the float ball's ··· menu (or the toolbar popup) and choose
Adjust what gets translated here. Point at an area and click it, press
↑ Parent to take the enclosing block, check the Matches count, and
edit the selector if you like. Then choose:
Every rule is listed under Settings → Site translation rules, where you
can also write one by hand: the sites it matches (example.com,
*.example.com, example.com/docs/*), the areas as CSS selectors, custom
CSS for the translations (anything that loads from the network is refused),
and the engine for that site. Rules sync with your browser account (at most
50 rules, 24 KiB), take effect on open pages as soon as they are saved, and
win over the built-in site list. Export rules saves
blab-site-rules-YYYYMMDD.json; Import rules… previews what it adds and
replaces first.
Runs on our servers against your monthly free page allowance, so it needs a signed-in account.
.pdf), Word
(.docx), EPUB (.epub), MOBI (.mobi, .azw3), plain text (.txt) and
Markdown (.md, .markdown).<name> (bilingual).<ext> /
<name> (translated).<ext>.Web PDFs (an open PDF tab, or a link to one) can also be translated from the popup's Translate This PDF and the right-click menu; that path takes PDFs only.
Installing the extension opens a welcome page (only on a fresh install, never on an update). Every choice on it is saved the moment you make it:
chrome://extensions/shortcuts.Open Full Settings and Done are at the bottom of the page.
The Import & Export card is the last card on the Settings page.
blab-settings-YYYYMMDD.json with your settings,
site rules and site translation rules. Your API key is left out unless you tick Include my API
key. Caches, usage statistics, your account sign-in, per-site prompt
counters and panel positions stay on this device.Works with any OpenAI-compatible API endpoint. Just configure the endpoint URL, API key, and model name.
| Service | Example API Endpoint | Notes |
|---|---|---|
| OpenAI | https://api.openai.com/v1/chat/completions | GPT-4o, GPT-4o-mini, etc. |
| Anthropic Claude | https://api.anthropic.com/v1/messages | Claude Sonnet, Opus, Haiku |
| Azure OpenAI | https://your-resource.openai.azure.com/... | |
| Google Gemini | https://generativelanguage.googleapis.com/v1beta/openai/chat/completions | Gemini Pro, Flash, etc. |
| DeepSeek | https://api.deepseek.com/v1/chat/completions | DeepSeek-V3, etc. |
| OpenRouter | https://openrouter.ai/api/v1/chat/completions | Multiple providers |
| Ollama (Local) | http://localhost:11434/v1/chat/completions | Local models |
| LM Studio (Local) | http://localhost:1234/v1/chat/completions | Local models |
Auto-detection: The extension automatically detects Anthropic Claude API (by domain or
/v1/messagespath) and uses the correct request/response format.
A model server on your own machine or local network needs no API key.
Choose Ollama (Local) or LM Studio (Local) as the Provider, or choose
Custom and enter an endpoint on localhost, 127.0.0.1, a private LAN
address (10.x, 172.16-31.x, 192.168.x) or a .local name, and leave
API Key empty. No authorization header is sent when the key is empty; if
your server does require one (LM Studio's "Require Authentication"), fill it in
and it is sent as usual.
Both servers have to be told to accept requests from a browser extension:
OLLAMA_ORIGINS, and
answers anything else with HTTP 403. Set
OLLAMA_ORIGINS=chrome-extension://* in Ollama's environment and restart it
(on macOS: launchctl setenv OLLAMA_ORIGINS "chrome-extension://*", then quit
and reopen the Ollama app).lms server start --cors.If a request fails, the error names the fix: a 403 from a local server shows these instructions, and a server that is not running is named by its address.
Translation targets: 76 languages, named in your interface language. 39 of them can be translated free on-device by Chrome's built-in Translator; the other 37 are marked "AI only" in the language menus and go through your AI service.
Interface: 简体中文 • 繁体中文 • English • 日本語 • 한국어 • Français • Deutsch • Español • Português • Русский
translator/
├── manifest.json # Chrome extension configuration
├── background/ # Background script
├── content/ # Content script & styles
├── popup/ # Popup menu
├── options/ # Settings page
├── i18n/ # Internationalization
└── icons/ # Extension icons
The extension follows a content-first architecture: content scripts collect and batch text, background scripts handle API calls, and UI surfaces manage user settings.
chrome.storage.sync.flowchart LR
U[User Action] --> C[Content Script]
C --> D[DOM Scan + Filters]
D --> P[Priority Split]
P --> B[Token-Aware Batching]
B -->|TRANSLATE / TRANSLATE_BATCH_FAST| W[Background Worker]
W -->|Prompt Build + Placeholder Rules| A[LLM API]
A --> W --> R[Translations]
R --> C --> I[Insert Translations into DOM]
S[Options/Popup] --> K[chrome.storage.sync]
K --> C
K --> W
PolyForm Noncommercial 1.0.0. Free for personal use, study, research, and noncommercial organizations. Commercial use requires a separate license — open an issue to ask. Versions released before this change remain under the MIT License.
用 AI 翻译网页、PDF、漫画与字幕的 Chrome 插件。网页、PDF、电子书、漫画都能原文与译文对照阅读,YouTube 看双语字幕,任意图片里的文字也能识别翻译(OCR)。三个引擎任选:Chrome 免费的本地翻译、你信任的 AI(云端或本地模型,用你自己的 Key),或订阅包含、无需 Key 的 Blab Translation。
本仓库建议的 GitHub topics:translator、manga-translator、pdf-translator、chrome-extension。
Esc 清除所有段落译文,或右键段落/译文选择取消Alt+W),或在设置里把「整页翻译范围」改成整页translate="no" 或 class="notranslate" 的部分(品牌名、代码、人名)原样保留Alt+T(可在 chrome://extensions/shortcuts 改键)Esc 关闭git clone https://github.com/FutrixDev/translator.git
cd translator
chrome://extensions/translator 文件夹https://api.openai.com/v1/chat/completionsgpt-4.1-mini(可从下拉列表选择,也可直接填写你的接口支持的任意模型)Esc 或点击 × 关闭/清除Shift)Esc 清除所有段落译文,或右键段落/译文选择取消默认只翻正文(设置里的「整页翻译范围」:「只翻译正文(推荐)」/「翻译整个页面」)。
方式一:悬浮球
··· 菜单,选「翻译此页面」(按设置的范围)或「翻译整个页面」(这一页连导航、侧栏一起翻,重新加载页面后回到设置的范围)方式二:插件菜单
方式三:右键菜单
方式四:快捷键
Alt+W:翻译整个页面(同悬浮球菜单里的那一项;可在 chrome://extensions/shortcuts 改键)翻译完成后:
在网页上打开悬浮球的 ··· 菜单(或工具栏弹窗),选 调整本站翻译区域。把鼠标移到某块区域上点一下,点 ↑上一层 换成外面那一块,看一眼 匹配 N 处 的数,需要的话直接改选择器,然后选:
所有规则都列在 设置 → 站点翻译规则,也可以在那里手写:匹配的网站(example.com、*.example.com、example.com/docs/*)、用 CSS 选择器写的区域、给译文加的 CSS(会从网络加载东西的写法一律拒绝),以及这个网站用的翻译引擎。规则随浏览器账号同步(最多 50 条、24 KiB),保存后已打开的页面立即生效,优先于内置的网站列表。导出规则 保存为 blab-site-rules-YYYYMMDD.json;导入规则… 先预览会新增和替换几条。
跑在我们的服务器上、按月度免费页数计,所以需要先登录账号。
.pdf)、Word(.docx)、EPUB
(.epub)、MOBI(.mobi、.azw3)、纯文本(.txt)、Markdown(.md、
.markdown)。<文件名> (双语).<扩展名> / <文件名> (译文).<扩展名>。网页上的 PDF(打开着的 PDF 标签页,或指向 PDF 的链接)也可以从弹窗的「翻译此 PDF」 和右键菜单翻译;这条路只接 PDF。
装好扩展会打开一个欢迎页(只在全新安装时打开,更新不会)。页面上的每个选择都会立即保存:
chrome://extensions/shortcuts 修改。页面底部是 打开完整设置 和 完成。
设置页最后一张卡片是 导入与导出。
blab-settings-YYYYMMDD.json,包含设置、站点规则和站点翻译规则。API 密钥默认不导出,勾选 包含我的 API 密钥 才会写进文件。缓存、使用统计、账号登录、各站点的询问计数和面板位置只留在这台设备上。支持所有 OpenAI 兼容的 API 接口,只需配置接口地址、API Key 和模型名称即可。
| 服务 | API 地址示例 | 说明 |
|---|---|---|
| OpenAI | https://api.openai.com/v1/chat/completions | GPT-4o, GPT-4o-mini 等 |
| Anthropic Claude | https://api.anthropic.com/v1/messages | Claude Sonnet, Opus, Haiku |
| Azure OpenAI | https://your-resource.openai.azure.com/... | |
| Google Gemini | https://generativelanguage.googleapis.com/v1beta/openai/chat/completions | Gemini Pro, Flash 等 |
| DeepSeek | https://api.deepseek.com/v1/chat/completions | DeepSeek-V3 等 |
| OpenRouter | https://openrouter.ai/api/v1/chat/completions | 多种模型提供商 |
| Ollama (本地) | http://localhost:11434/v1/chat/completions | 本地模型 |
| LM Studio (本地) | http://localhost:1234/v1/chat/completions | 本地模型 |
自动检测:插件会自动检测 Anthropic Claude API(通过域名或
/v1/messages路径),并使用正确的请求/响应格式。
跑在本机或局域网里的模型服务不需要 API Key。服务商选 Ollama (Local) 或
LM Studio (Local),或者选 Custom 并填一个 localhost、127.0.0.1、
局域网私有地址(10.x、172.16-31.x、192.168.x)或 .local 主机名的地址,
API Key 留空即可。Key 为空时不发送任何认证头;如果你的服务确实要 Key
(LM Studio 的「Require Authentication」),照常填上就会照常发送。
两种服务都要先允许浏览器扩展访问:
OLLAMA_ORIGINS 里列出的浏览器扩展,其余一律回 HTTP 403。
在 Ollama 的环境里设置 OLLAMA_ORIGINS=chrome-extension://* 后重启(macOS:
launchctl setenv OLLAMA_ORIGINS "chrome-extension://*",再退出并重新打开
Ollama 应用)。lms server start --cors 启动服务。请求失败时,错误提示会直接给出做法:本地服务回 403 时显示上面的设置方法, 服务没启动时会写明它的地址。
目标语言: 76 门,名字按界面语言显示。其中 39 门可用 Chrome 内置翻译免费在本机完成;其余 37 门在语言菜单里标「仅 AI」,走你配置的 AI 服务。
界面语言: 简体中文 • 繁体中文 • English • 日本語 • 한국어 • Français • Deutsch • Español • Português • Русский
translator/
├── manifest.json # Chrome 扩展配置
├── background/ # 后台脚本
├── content/ # 内容脚本 & 样式
├── popup/ # 弹出菜单
├── options/ # 设置页面
├── i18n/ # 国际化
└── icons/ # 插件图标
插件采用内容脚本驱动的架构:内容脚本负责收集与分批,后台负责调用 API,UI 管理用户配置。
chrome.storage.sync。flowchart LR
U[用户触发] --> C[Content Script]
C --> D[DOM 扫描与过滤]
D --> P[首屏优先分组]
P --> B[Token 估算分批]
B -->|TRANSLATE / TRANSLATE_BATCH_FAST| W[Background Worker]
W -->|构建 Prompt + 占位符规则| A[LLM API]
A --> W --> R[译文结果]
R --> C --> I[插入译文到页面]
S[Options/Popup] --> K[chrome.storage.sync]
K --> C
K --> W
PolyForm Noncommercial 1.0.0。个人使用、学习、研究以及非营利机构可免费使用;任何商业用途需另行取得授权,请提 issue 联系。此前已发布的版本仍按 MIT 许可。