KISS Translator

A simple bilingual translation extension & Greasemonkey script (一个简约的双语对照翻译扩展 & 油猴脚本)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
fishjar
Daily installs
4
Total installs
5,672
Ratings
34 1 0
Version
2.0.14
Created
2023-08-10
Updated
2025-12-05
Size
981 KB
License
GPL-3.0
Applies to
All sites

简约翻译

一个简约、开源的 双语对照翻译扩展 & 油猴脚本

特性

  • [x] 保持简约
  • [x] 开放源代码
  • [x] 适配常见浏览器
    • [x] Chrome/Edge
    • [x] Firefox
    • [x] Kiwi (Android)
    • [x] Orion (iOS)
    • [x] Safari
    • [x] Thunderbird
  • [x] 支持多种翻译服务
    • [x] Google/Microsoft
    • [x] Tencent/Volcengine
    • [x] OpenAI/Gemini/Claude/Ollama/DeepSeek/OpenRouter
    • [x] DeepL/DeepLX/NiuTrans
    • [x] BuiltinAI/AzureAI/CloudflareAI
    • [x] 自定义翻译接口
  • [x] 覆盖常见翻译场景
    • [x] 网页双语对照翻译
    • [x] 输入框翻译
    • [x] 划词翻译
    • [x] 任意页面打开翻译框
    • [x] 收藏词汇
    • [x] 鼠标悬停翻译
    • [x] YouTube 字幕翻译
  • [x] 支持多样翻译效果
    • [x] 自定识别文本,全文翻译
    • [x] 自定义译文样式
    • [x] 支持富文本翻译及显示
    • [x] 支持仅显示译文(隐藏原文)
  • [x] 翻译接口高级功能
    • [x] 聚合批量发送翻译文本
    • [x] AI上下文会话记忆
    • [x] 自定义AI术语词典
    • [x] 字幕文本AI智能断句及翻译
    • [x] 自定义Hook,自定义参数
  • [x] 跨客户端数据同步
    • [x] KISS-Worker(cloudflare/docker)
    • [x] WebDAV
  • [x] 自定义翻译规则
    • [x] 规则订阅/规则分享
    • [x] 自定义专业术语
  • [x] 自定义快捷键
    • Alt+Q 开启翻译
    • Alt+C 切换样式
    • Alt+K 打开设置弹窗
    • Alt+S 打开翻译弹窗/翻译选中文字
    • Alt+O 打开设置页面
    • Alt+I 输入框翻译

安装

注:基于以下原因,建议优先使用浏览器扩展

  • 浏览器扩展的功能更完整(字幕翻译、本地语言识别、右键菜单等)
  • 油猴脚本会遇到更多使用上的问题(跨域问题、脚本冲突等)

关联项目

常见问题

如何设置快捷键

在插件管理那里设置,例如:

规则设置的优先级是如何的

个人规则 > 订阅规则 > 全局规则

其中全局规则优先级最低,但非常重要,相当于兜底规则。

本地的Ollama接口不能使用

如果出现403的情况,参考:https://github.com/fishjar/kiss-translator/issues/174

填写的接口在油猴脚本不能使用

油猴脚本需要增加域名白名单,否则不能发出请求。

未来规划

本项目为业余开发,无严格时间表,欢迎社区共建。以下为初步设想的功能方向:

  • [x] 聚合发送文本:优化请求策略,减少翻译接口调用次数,提升性能。
  • [x] 增强富文本翻译:支持更复杂的页面结构和富文本内容的准确翻译。
  • [x] 强化自定义/AI 接口:支持上下文记忆、多轮对话等高级 AI 功能。
  • [x] 英文词典备灾机制:当翻译服务失效时,可切换其他词典或 fallback 到本地词典查询。
  • [x] 优化 YouTube 字幕支持:改进流式字幕的合并与翻译体验,减少断句。
  • [ ] 规则共建机制升级:引入更灵活的规则分享、版本管理与社区评审流程。

如果你对某个方向感兴趣,欢迎在 Issues 中讨论或提交 PR!

开发指引

git clone https://github.com/fishjar/kiss-translator.git
cd kiss-translator
git checkout dev # 提交PR建议推送到dev分支
pnpm install
pnpm build

交流

赞赏

appreciate