From 2a1b1b71d3d38ffe641018ba1e6768d78b06d993 Mon Sep 17 00:00:00 2001 From: Andrew De La Ossa Date: Wed, 1 Apr 2026 19:49:13 -0700 Subject: [PATCH] Created plugin disableOverlaySoundboard --- src/plugins/disableOverlaySoundboard/index.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/plugins/disableOverlaySoundboard/index.ts diff --git a/src/plugins/disableOverlaySoundboard/index.ts b/src/plugins/disableOverlaySoundboard/index.ts new file mode 100644 index 0000000000..c6df67ff1f --- /dev/null +++ b/src/plugins/disableOverlaySoundboard/index.ts @@ -0,0 +1,25 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2026 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: "DisableOverlaySoundboard", + description: "Prevents Discord's in-game overlay soundboard from opening.", + authors: [Devs.AndrewDLO], + patches: [ + { + find: 'type:"SOUNDBOARD_SET_OVERLAY_ENABLED",pid:t,enabled:!0,keepOpen:e', + replacement: [ + { + match: /\{type:"SOUNDBOARD_SET_OVERLAY_ENABLED",pid:t,enabled:!0,keepOpen:e\}/, + replace: '{type:"SOUNDBOARD_SET_OVERLAY_ENABLED",pid:t,enabled:!1,keepOpen:e}' + } + ] + } + ] +});