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;