From bc9f569829c7a4f9faca50ef44f28b6175a76f3d Mon Sep 17 00:00:00 2001 From: Coding Zhang <2291200076@qq.com> Date: Sat, 5 Feb 2022 16:46:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BF=BB=E8=AF=91=E7=8B=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shell-chrome/assets/js/advanced-search/background.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shell-chrome/assets/js/advanced-search/background.js b/packages/shell-chrome/assets/js/advanced-search/background.js index 72259f6..a9cc0e7 100644 --- a/packages/shell-chrome/assets/js/advanced-search/background.js +++ b/packages/shell-chrome/assets/js/advanced-search/background.js @@ -588,7 +588,8 @@ var omniboxSearchModes = [ { content: "fanyi: [金山词霸] " + text, description: "使用 [金山词霸] 查词 " + text + "", deletable: false }, { content: "fanyi: [360] " + text, description: "使用 [360翻译] 翻译 " + text + "", deletable: false }, { content: "fanyi: [DeepL] " + text, description: "使用 [DeepL翻译] 翻译 " + text + "", deletable: false }, - { content: "fanyi: [腾讯] " + text, description: "使用 [腾讯翻译君]", deletable: false }, + { content: "fanyi: [腾讯] " + text, description: "使用 [腾讯翻译君] 翻译 " + text + "", deletable: false }, + { content: "fanyi: [翻译狗] " + text, description: "使用 [翻译狗] 翻译 " + text + "", deletable: false }, { content: "fanyi: [Google] " + text, description: "使用 [Google翻译] 翻译 " + text + " (Google翻译在中国大陆无法使用)", deletable: false }, ]); return; @@ -630,6 +631,9 @@ var omniboxSearchModes = [ // 网页加载好后自动点击翻译按钮 navigate("https://fanyi.qq.com/?text=" + encodeURIComponent(searchText), true); break; + case "[翻译狗]": + navigate("https://www.fanyigou.com/trans/totran/tranText.html?text=" + encodeURIComponent(searchText), true); + break; case "[Google]": navigate("https://translate.google.cn/?text=" + encodeURIComponent(searchText), true); break;