From a5336228c8fef1c4b4e51fefff5ef128549eecf6 Mon Sep 17 00:00:00 2001 From: example Date: Mon, 11 Nov 2019 17:12:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=85=E5=BA=94=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- translate/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate/translate.js b/translate/translate.js index 0c1d1f4..40246c1 100644 --- a/translate/translate.js +++ b/translate/translate.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Translate // @namespace http://tampermonkey.net/ -// @version 6.4 +// @version 6.5 // @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://*/* @@ -134,7 +134,7 @@ } else { document.querySelector('#tta_tgtsl').value = 'zh-Hans'; } - var source = document.querySelector('#tta_input'); + var source = document.querySelector('textarea'); source.value = text; for (var i = 0; i < 10; i++) { // 最低延迟 5 秒 setTimeout(function () {