FixImagesQuality: no longer make gifs play when autoplay is off
This commit is contained in:
parent
3e7d946296
commit
80016180b6
|
@ -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: ""
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue