FixImagesQuality: no longer make gifs play when autoplay is off

main
Nuckyz 11 months ago
parent 3e7d946296
commit 80016180b6
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

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

Loading…
Cancel
Save