hide app download button in server list
This commit is contained in:
19
src/renderer/patches/hideDownloadAppsButton.ts
Normal file
19
src/renderer/patches/hideDownloadAppsButton.ts
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
@@ -14,3 +14,4 @@ import "./spellCheck";
|
|||||||
import "./windowsTitleBar";
|
import "./windowsTitleBar";
|
||||||
import "./streamerMode";
|
import "./streamerMode";
|
||||||
import "./nativeFocus";
|
import "./nativeFocus";
|
||||||
|
import "./hideDownloadAppsButton";
|
||||||
|
|||||||
Reference in New Issue
Block a user