样式更新
This commit is contained in:
parent
c41a236e75
commit
07cbadc2a4
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 划词翻译:有道词典,金山词霸,谷歌翻译
|
// @name 划词翻译:有道词典,金山词霸,谷歌翻译
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 0.9
|
// @version 1.0
|
||||||
// @description 划词翻译调用“有道词典(有道翻译)、金山词霸、谷歌翻译”
|
// @description 划词翻译调用“有道词典(有道翻译)、金山词霸、谷歌翻译”
|
||||||
// @author https://github.com/barrer
|
// @author https://github.com/barrer
|
||||||
// @match http://*/*
|
// @match http://*/*
|
||||||
|
@ -124,12 +124,16 @@
|
||||||
content: "]";
|
content: "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#google .terms:before {
|
||||||
|
content: "【";
|
||||||
|
}
|
||||||
|
|
||||||
#google .terms:after {
|
#google .terms:after {
|
||||||
content: "⌟";
|
content: "】";
|
||||||
}
|
}
|
||||||
|
|
||||||
#google .terms {
|
#google .terms {
|
||||||
margin-right: .7em;
|
margin-right: .2em;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
var link = document.createElement('link');
|
var link = document.createElement('link');
|
||||||
|
@ -337,9 +341,7 @@
|
||||||
element.onmousedown = this.startDrag;
|
element.onmousedown = this.startDrag;
|
||||||
element.onmouseup = this.stopDrag;
|
element.onmouseup = this.stopDrag;
|
||||||
}
|
}
|
||||||
/**
|
/**是否包含汉字*/
|
||||||
* 是否包含汉字
|
|
||||||
*/
|
|
||||||
function hasChineseByRange(str) {
|
function hasChineseByRange(str) {
|
||||||
for (var i = 0; i < str.length; i++) {
|
for (var i = 0; i < str.length; i++) {
|
||||||
if (str.charCodeAt(i) >= 0x4E00 && str.charCodeAt(i) <= 0x9FBF) {
|
if (str.charCodeAt(i) >= 0x4E00 && str.charCodeAt(i) <= 0x9FBF) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user