|
46 | 46 | // @grant GM.notification |
47 | 47 | // @grant unsafeWindow |
48 | 48 | // @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 |
50 | 50 | // @require https://update.greasyfork.org/scripts/440698/1427239/pvcep_lang.js |
51 | 51 | // @downloadURL https://greasyfork.org/scripts/24204-picviewer-ce/code/Picviewer%20CE+.user.js |
52 | 52 | // @updateURL https://greasyfork.org/scripts/24204-picviewer-ce/code/Picviewer%20CE+.meta.js |
@@ -12640,7 +12640,7 @@ ImgOps | https://imgops.com/#b#`; |
12640 | 12640 | } |
12641 | 12641 | if (newsrc) { |
12642 | 12642 | } 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; |
12644 | 12644 | srcs.forEach(srci => { |
12645 | 12645 | let srcInfo = srci.trim().split(/\s+/), curSize = parseInt(srcInfo[1] || 0); |
12646 | 12646 | if ((srcInfo[1] || !oldsrc) && curSize > largeSize) { |
@@ -24331,7 +24331,7 @@ ImgOps | https://imgops.com/#b#`; |
24331 | 24331 |
|
24332 | 24332 | function pretreatment(img, fetchImg) { |
24333 | 24333 | 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; |
24335 | 24335 | let src; |
24336 | 24336 | tprules.find(function(rule, index, array) { |
24337 | 24337 | try { |
|
0 commit comments