DeepL深度翻譯器
DeepL一個程序員的翻譯神器,可能有人要問,市面上這么多的翻譯插件這么多,我為毛要用你的。
首先這個翻譯神器可以實現多個翻譯引擎的翻譯,目前支持有道和google,下一步我會把最近特別流行的翻譯軟件DeepL加入(其實最開始就想要加,奈何DeepL的反扒太牛逼了)。
開始
- GitHub
- 作者碼云
- 作者簡書
- 安裝腳本
特征
- 多引擎
- 頁面翻譯
- 自動翻譯(這里包括自動翻譯頁面,自動翻譯ajax更新的信息)
- 忽略單詞(這里的忽略表示跳過,下同)
- 忽略元素
- 忽略域名
- 替換指定的單詞
- 命令窗口
- 可配置
- 無服務器
使用
頁面翻譯
安裝好后打開一個英文的網站,具體安裝點擊上方的安裝腳本

然后點擊翻譯頁面

ok翻譯完成

顯示原文
如果我們想顯示原文,只需要點擊切換原文/翻譯
按鈕

效果如下

使用命令
點擊打開命令的功能即可。
具體命令如下:
- 'conf set isAuto', '配置是否自動翻譯,格式: conf set isAuto <0|1> ,0是關閉 1是開啟'
- 'conf set transEngine', '配置翻譯引擎,格式: conf set transEngine ,ge是谷歌'
- 'conf set transOrigLang', '配置翻譯源語言,格式: conf set transOrigLang <自動>'
- 'conf set transTargetLang', '配置目標語言,格式: conf set transTargetLang <中文簡體>'
- 'conf set ignoreWork add', '添加忽略的單詞,格式: conf set ignoreWork add <單詞>'
- 'conf set ignoreWork del', '刪除忽略的單詞,格式: conf set ignoreWork del <單詞>'
- 'conf set ignoreElement add', '添加忽略的元素(這里填的是定位這個元素的CSS選擇器的格式),格式: conf set ignoreElement add <元素選擇器>
- 'conf set ignoreElement del', '刪除忽略的元素(這里填的是定位這個元素的CSS選擇器的格式),格式: conf set ignoreElement del <元素選擇器>'
- 'conf set ignoreUrl add', '添加忽略的翻譯的域名,格式: conf set ignoreUrl add '
- 'conf set ignoreUrl del', '刪除忽略翻譯的域名,格式: conf set ignoreUrl del '
- 'conf set replaceWork add', '添加翻譯之前替換的單詞,格式: conf set replaceWork add <匹配單詞/替換單詞>'
- 'conf set replaceWork del', '刪除翻譯之前替換的單詞,格式: conf set replaceWork del <匹配單詞>'
- 'conf get all', '獲取所有的配置'
- 'conf init', '復位配置'
注意:參數位置的<>
這對尖括號表示必須要填的,正在在寫的時候不需要加尖括號,并且參數中不能存在空格。輸入命令后按擊Enter執行
如: conf set isAuto 1 表示開啟自動翻譯