FixImagesQuality: no longer make gifs play when autoplay is off

This commit is contained in:
Nuckyz 2023-12-01 16:39:15 -03:00 committed by Luna
parent 5e3f11ea9c
commit f31b387354

View file

@ -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: ""
}
]
}
]
});