Skip to content

Commit

Permalink
修复金山词霸释义内容解析
Browse files Browse the repository at this point in the history
  • Loading branch information
barrer committed Dec 28, 2022
1 parent a42e75f commit c4c7fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 10.13
// @version 10.14
// @description 划词翻译调用“有道词典(有道翻译)、金山词霸、Bing 词典(必应词典)、剑桥高阶、沪江小D、谷歌翻译”
// @author https://github.com/barrer
// @license https://www.apache.org/licenses/LICENSE-2.0
Expand Down Expand Up @@ -1107,7 +1107,7 @@
? ',p[class^="Mean_desc"],h2[class^="Mean_sentence"]' : '';
iterElementRemove(mean.querySelectorAll(`p[class^="Mean_tag"],p[class^="Mean_else"],ul[class^="TabList_tab"],h3[class^="Mean_title"]${mt}`));// 其它
let ky = [];
mean.querySelectorAll('a[href^="https://kuaiyi.wps.cn"]').forEach(el => ky.push(el.parentElement));// 快译
mean.querySelectorAll('a[href*="https://kuaiyi.wps.cn"]').forEach(el => ky.push(el.parentElement));// 快译
iterElementRemove(ky);
mean.innerHTML = mean.innerHTML.replace(/<li><\/li>/g, '');// GNU、MODE
dom.appendChild(mean);
Expand Down

0 comments on commit c4c7fea

Please sign in to comment.