1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

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