Vencord/src/plugins/fixImagesQuality/index.ts

24 lines
596 B
TypeScript
Raw Normal View History

2023-11-24 16:32:30 -03:00
/*
2023-11-24 16:49:19 -03:00
* Vencord, a Discord client mod
* Copyright (c) 2023 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
2023-11-24 16:32:30 -03:00
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"
}
}
]
});