From 467c5e0c4c00b021ec8ae8ecf0ee929630ec7f31 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 17 Dec 2023 17:40:59 -0300 Subject: [PATCH] Delete FixImagesQuality Discord fixed their issue with images getting converted to webp losing quality. In the future this plugin can be re-purposed to keep images format as the original, but that requires more than just removing part of the Discord code, and a bit of study to make sure it does not cause issues. --- src/plugins/fixImagesQuality/index.ts | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/plugins/fixImagesQuality/index.ts diff --git a/src/plugins/fixImagesQuality/index.ts b/src/plugins/fixImagesQuality/index.ts deleted file mode 100644 index 4acd9a92..00000000 --- a/src/plugins/fixImagesQuality/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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\){.+?return )\i\.SUPPORTS_WEBP.+?:(?=\i&&\(\i="png"\))/, - replace: "" - } - ] - } - ] -});