mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-25 07:48:32 +00:00
23 lines
596 B
TypeScript
23 lines
596 B
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2023 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { Devs } from "@utils/constants";
|
|
import definePlugin from "@utils/types";
|
|
|
|
export default definePlugin({
|
|
name: "FixImagesQuality",
|
|
description: "Fixes the quality of images in the chat being horrible.",
|
|
authors: [Devs.Nuckyz],
|
|
patches: [
|
|
{
|
|
find: "handleImageLoad=",
|
|
replacement: {
|
|
match: /(?<=getSrc\(\i\){.+?format:)\i/,
|
|
replace: "null"
|
|
}
|
|
}
|
|
]
|
|
});
|