From 523f657b3b75560aec570787f1029874100d4bf8 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 7 Feb 2025 03:54:37 +0100 Subject: [PATCH] hide app download button in server list --- .../patches/hideDownloadAppsButton.ts | 19 +++++++++++++++++++ src/renderer/patches/index.ts | 1 + 2 files changed, 20 insertions(+) create mode 100644 src/renderer/patches/hideDownloadAppsButton.ts diff --git a/src/renderer/patches/hideDownloadAppsButton.ts b/src/renderer/patches/hideDownloadAppsButton.ts new file mode 100644 index 0000000..09e60b0 --- /dev/null +++ b/src/renderer/patches/hideDownloadAppsButton.ts @@ -0,0 +1,19 @@ +/* + * SPDX-License-Identifier: GPL-3.0 + * Vesktop, a desktop app aiming to give you a snappier Discord Experience + * Copyright (c) 2023 Vendicated and Vencord contributors + */ + +import { addPatch } from "./shared"; + +addPatch({ + patches: [ + { + find: '"app-download-button"', + replacement: { + match: /return(?=.{0,50}id:"app-download-button")/, + replace: "return null;return" + } + } + ] +}); diff --git a/src/renderer/patches/index.ts b/src/renderer/patches/index.ts index 32e763f..299753b 100644 --- a/src/renderer/patches/index.ts +++ b/src/renderer/patches/index.ts @@ -14,3 +14,4 @@ import "./spellCheck"; import "./windowsTitleBar"; import "./streamerMode"; import "./nativeFocus"; +import "./hideDownloadAppsButton";