Skip to content

Commit 37b12fe

Browse files
committed
Update Picviewer CE+.user.js
1 parent 8b8109b commit 37b12fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24053,7 +24053,7 @@ ImgOps | https://imgops.com/#b#`;
2405324053
} catch (e) {}
2405424054
}
2405524055
}
24056-
if(src)type='scale';
24056+
if(src)type='tpRule';
2405724057
}
2405824058

2405924059
if(!src && !base64Img){//遍历通配规则
@@ -25192,7 +25192,7 @@ ImgOps | https://imgops.com/#b#`;
2519225192
result.imgAS = sizeInfo;
2519325193
result.imgCS = sizeInfo;
2519425194
}
25195-
if (prefs.floatBar.showWithRules && result.type == "rule") {
25195+
if (prefs.floatBar.showWithRules && (result.type == "rule" || result.type == "tpRule")) {
2519625196
} else if (!(result.imgAS.w == result.imgCS.w && result.imgAS.h == result.imgCS.h)) {//如果不是两者完全相等,那么被缩放了.
2519725197
if (prefs.floatBar.sizeLimitOr) {
2519825198
if (result.imgCS.h <= prefs.floatBar.minSizeLimit.h && result.imgCS.w <= prefs.floatBar.minSizeLimit.w) {//最小限定判断.

0 commit comments

Comments
 (0)