From ad53b747259230baf8aa2a0cdd6df5f60883b47e Mon Sep 17 00:00:00 2001 From: example Date: Sat, 23 Mar 2019 09:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=9A=90=E8=97=8F=E5=90=8E?= =?UTF-8?q?=E6=8A=98=E5=8F=A0=20More?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- translate/translate.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/translate/translate.js b/translate/translate.js index b0cc0ec..49b59bc 100644 --- a/translate/translate.js +++ b/translate/translate.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Translate // @namespace http://tampermonkey.net/ -// @version 5.0 +// @version 5.1 // @description 划词翻译调用“金山词霸、有道词典(有道翻译)、Google Translate(谷歌翻译)、沪江小D、搜狗翻译、必应词典(必应翻译)、Microsoft Translator(必应在线翻译)、海词词典、百度翻译、Oxford Learner's Dictionaries、Oxford Dictionaries、Merriam-Webster、汉典、PDF 划词翻译、Google Search、Bing Search(必应搜索)、百度搜索、Wikipedia Search(维基百科搜索)”网页翻译 // @author https://github.com/barrer // @match http://*/* @@ -445,6 +445,9 @@ } else if (!text) { log('hide icon'); icon.style.display = 'none'; + icon.querySelectorAll('img[is-more]').forEach(function (ele) { + ele.style.display = 'none'; + }); forceStopDrag(); } });