Skip to content

Commit 30bb860

Browse files
committed
fix bg reg lag
1 parent 43f01d7 commit 30bb860

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 2 additions & 14 deletions
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 2018.6.27.1
9+
// @version 2018.7.4.1
1010
// @created 2011-6-15
1111
// @namespace http://userscripts.org/users/NLF
1212
// @homepage http://hoothin.com
@@ -8634,7 +8634,7 @@ left: -45px;\
86348634
xhr,
86358635
description; // 图片的注释
86368636

8637-
if(!src && matchedRule){// 通过高级规则获取.
8637+
if(!src && matchedRule && !base64Img){// 通过高级规则获取.
86388638
// 排除
86398639
if (matchedRule.exclude && matchedRule.exclude.test(imgSrc)) {
86408640
return;
@@ -8996,18 +8996,6 @@ left: -45px;\
89968996
if(prefs.floatBar.listenBg && targetStyle.backgroundImage && /^url/.test(targetStyle.backgroundImage) && targetStyle.backgroundImage.indexOf("about:blank")==-1 && targetStyle.width.replace("px","")>prefs.floatBar.minSizeLimit.w && targetStyle.height.replace("px","")>prefs.floatBar.minSizeLimit.h){
89978997
var src=targetStyle.backgroundImage.replace(/url\(["'](.*)["']\)/,"$1"),nsrc=src,noActual=true,type="scale";
89988998
var img={src:src};
8999-
tprules._find(function(rule,index,array){
9000-
try{
9001-
nsrc=rule.call(img,img,null);
9002-
if(nsrc){
9003-
type="tpRule";
9004-
noActual=false;
9005-
return true;
9006-
};
9007-
}catch(err){
9008-
throwErrorInfo(err);
9009-
};
9010-
});
90118999
result = {
90129000
src: nsrc,
90139001
type: type,

0 commit comments

Comments
 (0)