From f286aaa02fa6c8e89a9bee9b2c70307f27a342d8 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 2 Jun 2026 11:21:18 -0400 Subject: [PATCH] Fix Patches --- src/equicordplugins/equicordHelper/index.tsx | 17 +++++++++-------- .../equicordHelper/standingButton.css | 12 ------------ src/plugins/fakeNitro/index.tsx | 4 +--- src/plugins/showHiddenChannels/index.tsx | 15 +++++++++++---- src/plugins/showHiddenChannels/style.css | 4 ++++ 5 files changed, 25 insertions(+), 27 deletions(-) delete mode 100644 src/equicordplugins/equicordHelper/standingButton.css diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index d12b2e906..15681997e 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -4,8 +4,6 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import "./standingButton.css"; - import { ApplicationCommandInputType, sendBotMessage } from "@api/Commands"; import { HeaderBarButton } from "@api/HeaderBar"; import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents"; @@ -44,6 +42,7 @@ const StandingConfig: Record SafetyHubStore.getAccountStanding()); const isInitialized = useStateFromStores([SafetyHubStore], () => SafetyHubStore.isInitialized()); + const [hovered, setHovered] = React.useState(false); React.useEffect(() => { if (!isInitialized) fetchSafetyHub().catch(() => { }); @@ -52,12 +51,14 @@ function StandingButton() { const config = StandingConfig[standing?.state] ?? StandingConfig[StandingState.ALL_GOOD]; return ( - } - onClick={() => SettingsRouter.openUserSettings("account_standing_panel")} - /> +
setHovered(true)} onMouseLeave={() => setHovered(false)}> + } + onClick={() => SettingsRouter.openUserSettings("my_account_panel")} + /> +
); } diff --git a/src/equicordplugins/equicordHelper/standingButton.css b/src/equicordplugins/equicordHelper/standingButton.css deleted file mode 100644 index 28bab7325..000000000 --- a/src/equicordplugins/equicordHelper/standingButton.css +++ /dev/null @@ -1,12 +0,0 @@ -.vc-eqh-standing { - color: currentcolor; - transition: color 120ms ease; -} - -[role="button"] { - --vc-eqh-standing-hover: currentcolor; -} - -[role="button"]:hover > .vc-eqh-standing { - color: var(--vc-eqh-standing-hover, currentcolor); -} diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index 6f00d76f0..1b3c72fd7 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -316,9 +316,7 @@ export default definePlugin({ }, // Allow users to use custom client themes { - find: "customUserThemeSettings:{", - // Discord has two separate modules for treatments 1 and 2 - all: true, + find: '"custom_themes_editor_footer"', replacement: { match: /(?<=\i=)\(0,\i\.\i\)\(\i\.\i\.TIER_2\)(?=,|;)/g, replace: "true" diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 2b6bb2243..ff0e713dc 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -169,7 +169,7 @@ export default definePlugin({ predicate: () => settings.store.showMode === ShowMode.LockIcon, replacement: { // Lock Icon - match: /(?<=(\i)\.isNSFW\(\);)switch\(\i\.type\)/, + match: /(?<=(\i)\.isNSFW\(\);)switch\(\i\.type\).{0,15}\.GUILD_ANNOUNCEMENT/, replace: (m, channel) => `if($self.isHiddenChannel(${channel}))return $self.LockIcon;${m}` } }, @@ -506,6 +506,13 @@ export default definePlugin({ match: /(?=function (\i)\(\i\){let{channel:.{0,200}?getSortedRoles\()/, replace: "$self.ChannelBeginHeader=$1;" } + }, + { + find: "2026-02-private-channel-hiding", + replacement: { + match: /(function \i\(\i\)).{0,50}\.enableObfuscation\}/g, + replace: "$1{return false;}" + } } ], @@ -582,7 +589,7 @@ export default definePlugin({ aria-hidden={true} role="img" > - + ), { noop: true }), @@ -599,7 +606,7 @@ export default definePlugin({ aria-hidden={true} role="img" > - + )} @@ -618,7 +625,7 @@ export default definePlugin({ aria-hidden={true} role="img" > - + )} diff --git a/src/plugins/showHiddenChannels/style.css b/src/plugins/showHiddenChannels/style.css index 2aa0e76e6..c197fc3e2 100644 --- a/src/plugins/showHiddenChannels/style.css +++ b/src/plugins/showHiddenChannels/style.css @@ -105,3 +105,7 @@ margin-left: 6px; z-index: 0; } + +.vc-shc-channel-list-icon { + fill: var(--channel-icon); +} \ No newline at end of file