From 12b3331dfc04afc96abd148b48ca742656dda312 Mon Sep 17 00:00:00 2001 From: Jake <134332787+justjxke@users.noreply.github.com> Date: Wed, 4 Feb 2026 17:11:48 +0000 Subject: [PATCH] add/cleanChannelGroups (#723) * Add cleanChannelGroups * update patches --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com> --- .../cleanerChannelGroups/index.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/equicordplugins/cleanerChannelGroups/index.ts diff --git a/src/equicordplugins/cleanerChannelGroups/index.ts b/src/equicordplugins/cleanerChannelGroups/index.ts new file mode 100644 index 000000000..73f5ba4ce --- /dev/null +++ b/src/equicordplugins/cleanerChannelGroups/index.ts @@ -0,0 +1,29 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2026 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "CleanerChannelGroups", + description: "Hides all channels in collapsed categories, even if they have unread messages.", + authors: [EquicordDevs.justjxke], + patches: [ + { + find: '"placeholder-channel-id"', + replacement: [ + { + match: /this\.category\.isCollapsed&&\(.{0,600}?\)\?\{renderLevel:3,threadIds:/, + replace: "this.category.isCollapsed?{renderLevel:3,threadIds:" + }, + { + match: /(?<=!this.category.isCollapsed.{0,50}\i=)(\i\(this\.record,.{0,5},\i\.hideMutedChannels\);)/, + replace: "this.category.isCollapsed?[]:$1" + } + ] + } + ] +});