Skip to content

Commit 27b3ee1

Browse files
committed
Update Picviewer CE+.user.js
1 parent b6bd65f commit 27b3ee1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// @grant GM.notification
4747
// @grant unsafeWindow
4848
// @require https://update.greasyfork.org/scripts/6158/23710/GM_config%20CN.js
49-
// @require https://update.greasyfork.org/scripts/438080/1633712/pvcep_rules.js
49+
// @require https://update.greasyfork.org/scripts/438080/1634053/pvcep_rules.js
5050
// @require https://update.greasyfork.org/scripts/440698/1427239/pvcep_lang.js
5151
// @downloadURL https://greasyfork.org/scripts/24204-picviewer-ce/code/Picviewer%20CE+.user.js
5252
// @updateURL https://greasyfork.org/scripts/24204-picviewer-ce/code/Picviewer%20CE+.meta.js
@@ -12640,7 +12640,7 @@ ImgOps | https://imgops.com/#b#`;
1264012640
}
1264112641
if (newsrc) {
1264212642
} else if (this.srcset) {
12643-
var srcs = this.srcset.split(/[xw],/i), largeSize = -1;
12643+
var srcs = this.srcset.split(/[xw],\s*/i), largeSize = -1;
1264412644
srcs.forEach(srci => {
1264512645
let srcInfo = srci.trim().split(/\s+/), curSize = parseInt(srcInfo[1] || 0);
1264612646
if ((srcInfo[1] || !oldsrc) && curSize > largeSize) {
@@ -24331,7 +24331,7 @@ ImgOps | https://imgops.com/#b#`;
2433124331

2433224332
function pretreatment(img, fetchImg) {
2433324333
if (img.removeAttribute) img.removeAttribute("loading");
24334-
if (img.nodeName.toUpperCase() != "IMG" || (!fetchImg && img.src && !/^data/.test(img.src))) return;
24334+
if (img.nodeName.toUpperCase() != "IMG" || (!fetchImg && img.src && !img.srcset && !/^data/.test(img.src))) return;
2433524335
let src;
2433624336
tprules.find(function(rule, index, array) {
2433724337
try {

0 commit comments

Comments
 (0)