FixImagesQuality: no longer make gifs play when autoplay is off

This commit is contained in:
Nuckyz 2023-12-01 16:39:15 -03:00
parent 3e7d946296
commit 80016180b6
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -14,10 +14,12 @@ export default definePlugin({
patches: [ patches: [
{ {
find: "handleImageLoad=", find: "handleImageLoad=",
replacement: { replacement: [
match: /(?<=getSrc\(\i\){.+?format:)\i/, {
replace: "null" match: /(?<=getSrc\(\i\){.+?return )\i\.SUPPORTS_WEBP.+?:(?=\i&&\(\i="png"\))/,
replace: ""
} }
]
} }
] ]
}); });