mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
FixImagesQuality: no longer make gifs play when autoplay is off
This commit is contained in:
parent
5e3f11ea9c
commit
f31b387354
1 changed files with 6 additions and 4 deletions
|
@ -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…
Reference in a new issue