Skip to content

Commit a06bdb2

Browse files
committed
fix
1 parent 6c1b05c commit a06bdb2

3 files changed

Lines changed: 20 additions & 13 deletions

File tree

Kill Baidu AD/Kill Baidu AD.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'use strict';
2424
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
2525
var observer = new MutationObserver(function(records){
26+
delMobileAD();
2627
clearAD();
2728
});
2829
var option = {
@@ -42,7 +43,6 @@
4243
}
4344

4445
function clearAD(){
45-
delMobileAD();
4646
var list=document.body.querySelectorAll("#content_left>div,#content_left>table"),i;
4747
for(i=0;i<list.length;i++){
4848
let item = list[i];

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically
77
// @description:zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图)
88
// @description:zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖)
9-
// @version 2016.11.30.2
9+
// @version 2016.12.09.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -483,6 +483,9 @@
483483
}
484484
}
485485
}
486+
if(/\.sinaimg\.cn\/mw\d+\//.test(oldsrc)){
487+
newsrc=oldsrc.replace(/\/mw\d+\//,"/large/");
488+
}
486489
return oldsrc != newsrc ? newsrc : null;
487490
}
488491
];

Switch Traditional Chinese and Simplified Chinese/Switch Traditional Chinese and Simplified Chinese.user.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ==UserScript==
2-
// @name Switch Traditional Chinese and Simplified Chinese
2+
// @name 繁簡自由切換
33
// @name:zh-CN 简繁自由切换
4-
// @name:zh-TW 繁簡自由切換
4+
// @name:en Switch Traditional Chinese and Simplified Chinese
55
// @namespace hoothin
6-
// @version 0.3
7-
// @description Just Switch Traditional Chinese and Simplified Chinese
8-
// @description:zh-CN 通过快捷键快速转换网页中的简体中文与繁体中文
9-
// @description:zh-TW 通過快捷鍵快速轉換網頁中的簡體中文與繁體中文
6+
// @version 0.5
7+
// @description 快速轉換整個網頁或者指定輸入框中的簡體中文與繁體中文
8+
// @description:zh-CN 快速转换整个网页或者指定输入框中的简体中文与繁体中文
9+
// @description:en Just Switch Traditional Chinese and Simplified Chinese
1010
// @author hoothin
1111
// @include *
1212
// @grant GM_setValue
@@ -59,14 +59,12 @@
5959
if(child.value != value){
6060
child.value=value;
6161
}
62-
}
63-
if(child.nodeType == 3){
62+
}else if(child.nodeType == 3){
6463
let data=stranText(child.data);
6564
if(child.data != data){
6665
child.data=data;
6766
}
68-
}
69-
else stranBody(child);
67+
}else stranBody(child);
7068
}
7169
}
7270

@@ -134,7 +132,13 @@
134132
document.addEventListener("keydown", function(e) {
135133
if(e.keyCode == shortcutKey && e.ctrlKey) {
136134
action=action==2?3:2;
137-
setLanguage();
135+
if("TEXTAREA"==document.activeElement.tagName){
136+
document.activeElement.innerHTML=stranText(document.activeElement.innerHTML);
137+
}else if("INPUT"==document.activeElement.tagName){
138+
document.activeElement.value=stranText(document.activeElement.value);
139+
}else{
140+
setLanguage();
141+
}
138142
}
139143
});
140144

0 commit comments

Comments
 (0)