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: [
|
||||
{
|
||||
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