From 07cbadc2a48686a8c4548fa4d551a68dcd86e90e Mon Sep 17 00:00:00 2001 From: example Date: Mon, 7 Jan 2019 21:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- translate/translate-dictionary.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/translate/translate-dictionary.js b/translate/translate-dictionary.js index eefb070..47c53a6 100644 --- a/translate/translate-dictionary.js +++ b/translate/translate-dictionary.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 划词翻译:有道词典,金山词霸,谷歌翻译 // @namespace http://tampermonkey.net/ -// @version 0.9 +// @version 1.0 // @description 划词翻译调用“有道词典(有道翻译)、金山词霸、谷歌翻译” // @author https://github.com/barrer // @match http://*/* @@ -124,12 +124,16 @@ content: "]"; } + #google .terms:before { + content: "【"; + } + #google .terms:after { - content: "⌟"; + content: "】"; } #google .terms { - margin-right: .7em; + margin-right: .2em; } `; var link = document.createElement('link'); @@ -337,9 +341,7 @@ element.onmousedown = this.startDrag; element.onmouseup = this.stopDrag; } - /** - * 是否包含汉字 - */ + /**是否包含汉字*/ function hasChineseByRange(str) { for (var i = 0; i < str.length; i++) { if (str.charCodeAt(i) >= 0x4E00 && str.charCodeAt(i) <= 0x9FBF) {