fix FixImageQuality

This commit is contained in:
Vendicated 2025-12-14 20:54:27 +01:00
parent 6827b8a3a6
commit 4398665b9a
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# Fix Images Quality
Improves quality of images in chat by forcing png format.
Improves quality of images by forcing the original source to be used.
This plugin does not change how others see your images!

View file

@ -9,14 +9,14 @@ import definePlugin from "@utils/types";
export default definePlugin({
name: "FixImagesQuality",
description: "Improves quality of images in chat by forcing png format",
description: "Improves quality of images by forcing the original source to be used.",
authors: [Devs.Nuckyz],
patches: [
{
find: ".handleImageLoad)",
replacement: {
match: /(?<=\i=)"webp"/,
replace: '"png"'
match: /getSrc\(\i\)\{/,
replace: "$& return this.props.src;"
}
}
]