mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 22:05:11 +00:00
fix FixImageQuality
This commit is contained in:
parent
6827b8a3a6
commit
4398665b9a
2 changed files with 4 additions and 4 deletions
|
|
@ -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!
|
||||
|
|
|
|||
|
|
@ -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;"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue