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";