mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-22 21:35:08 +00:00
hide app download button in server list
This commit is contained in:
parent
d75ab4af1c
commit
523f657b3b
2 changed files with 20 additions and 0 deletions
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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue