Skip to content

Commit

Permalink
修复金山词霸翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
example committed Dec 18, 2020
1 parent be5b56b commit 8e914fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions translate/translate-dictionary.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 划词翻译:多词典查询
// @namespace http://tampermonkey.net/
// @version 8
// @version 9
// @description 划词翻译调用“有道词典(有道翻译)、金山词霸、Bing 词典(必应词典)、剑桥高阶、沪江小D、谷歌翻译”
// @author https://github.com/barrer
// @match http://*/*
Expand Down Expand Up @@ -212,7 +212,7 @@
engines: (function () {
var obj = {};
obj[ids.ICIBA] = function (text, time) {
ajax('https://open.iciba.com/huaci_v3/dict.php?word=' + encodeURIComponent(text), function (rst) {
ajax('http://open.iciba.com/huaci_v3/dict.php?word=' + encodeURIComponent(text), function (rst) {
putEngineResult(ids.ICIBA, parseIciba(rst), time);
showContent();
}, function (rst) {
Expand All @@ -221,7 +221,7 @@
});
};
obj[ids.ICIBA_LOWER_CASE] = function (text, time) {
ajax('https://open.iciba.com/huaci_v3/dict.php?word=' + encodeURIComponent(text.toLowerCase()), function (rst) {
ajax('http://open.iciba.com/huaci_v3/dict.php?word=' + encodeURIComponent(text.toLowerCase()), function (rst) {
putEngineResult(ids.ICIBA_LOWER_CASE, parseIciba(rst), time);
showContent();
}, function (rst) {
Expand Down

0 comments on commit 8e914fe

Please sign in to comment.