Translate

划词翻译调用“金山词霸、有道词典(有道翻译)、Google Translate(谷歌翻译)、沪江小D、搜狗翻译、必应词典(必应翻译)、Microsoft Translator(必应在线翻译)、DeepL翻译、海词词典、百度翻译、Oxford Learner's Dictionaries、Oxford Dictionaries、Merriam-Webster、PDF 划词翻译、Google Search、Bing Search(必应搜索)、百度搜索、Wikipedia Search(维基百科搜索)”网页翻译

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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!)

ผู้เขียน
barrer
จำนวนติดตั้งประจำวัน
2
จำนวนติดตั้งทั้งหมด
61,893
คะแนน
171 9 0
เวอร์ชัน
10.20
สร้างเมื่อ
08-11-2017
อัปเดตเมื่อ
06-11-2025
Size
101 กิโลไบต์
สัญญาอนุญาต
https://www.apache.org/licenses/LICENSE-2.0
ปรับใช้กับ
ไซต์ทั้งหมด
Translate 脚本的历史:
在 1.4 及之前的版本,翻译内容会在当前页面展示。由于解析排版兼容相应网站的变动工作量较大,在 1.5 及之后的版本改成了弹窗的方式。在 1.5 版本之后(2018年1月2日) Greasy Fork 上出现了一些 Fork 并继续维护改进功能的脚本,广受好评。2021年7月,一些 Fork 的脚本因“未授权的副本”等原因从网站上消失,导致大量用户被重定向到此脚本。脚本本身是采用 Apache License 2.0 开源许可协议,如有需要请联系 Fork 后的作者,请其向管理员进行申诉。
Translate 的变更历史:
版本 1.4:
https://greasyfork.org/zh-CN/scripts/34921-translate?version=237263
所有历史版本:
https://greasyfork.org/zh-CN/scripts/34921-translate/versions

在 2019 年我又写了“划词翻译:多词典查询”这个脚本,在页面内展示翻译的内容,你可以同时安装这两个脚本来同时使用:
https://greasyfork.org/zh-CN/scripts/376313-%E5%88%92%E8%AF%8D%E7%BF%BB%E8%AF%91-%E5%A4%9A%E8%AF%8D%E5%85%B8%E6%9F%A5%E8%AF%A2

安装后请刷新页面(F5、Ctrl+R、command+R、地址栏刷新按钮),新打开的页面自动会生效
当拖动超过1个字符宽度(16像素)时不触发查询事件
因部分网站的安全设置影响,当弹出窗口被拦截时,请点击浏览器地址栏上的拦截图标,允许弹出窗口(界面见最后一张图片)

特色:
支持浏览器:Google Chrome、Firefox、Safari、Firefox for Android(无拖动)
支持顺序自定义
支持显示更多图标
支持图标拖动

同时安装:
① 划词翻译:多词典查询
https://greasyfork.org/zh-CN/scripts/376313-%E5%88%92%E8%AF%8D%E7%BF%BB%E8%AF%91-%E5%A4%9A%E8%AF%8D%E5%85%B8%E6%9F%A5%E8%AF%A2

② Translate
https://greasyfork.org/zh-CN/scripts/34921-translate

可以使用更多的翻译引擎!

源代码:
https://github.com/barrer/tampermonkey-script

作者更多脚本:
https://greasyfork.org/zh-CN/users/158488-barrer

For advanced users:

How do I add more sites?
Just add it to the JSON array iconArray.

{
    name: 'Site name',
    id: 'Unique ID (combination of upper and lower case letters)',
    image: 'Convert image to Base64',
    host: ['example.com', 'dict.example.com', 'more.example.com'],
    popup(text) {
        popupCenter(`https://dict.example.com/search=${encodeURIComponent(text)}`, null, 800, screen.height);
    },
    custom(text) { /*JavaScript code that is executed after the above domains page is loaded.*/ }
}

Don't forget to change the version number (@version) to prevent automatic updates.