From 66a8eb4854807f5de04334c66348da10c7835344 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:48:17 -0400 Subject: [PATCH 1/2] fix ShowHiddenThings, BetterSessions, ShowTimeoutDuration (#3701) Co-authored-by: Vendicated --- src/plugins/betterSessions/index.tsx | 4 ++-- src/plugins/showHiddenThings/index.ts | 2 +- src/plugins/showTimeoutDuration/index.tsx | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/betterSessions/index.tsx b/src/plugins/betterSessions/index.tsx index 14a25577a..c917d7ce7 100644 --- a/src/plugins/betterSessions/index.tsx +++ b/src/plugins/betterSessions/index.tsx @@ -31,7 +31,7 @@ import { fetchNamesFromDataStore, getDefaultName, GetOsColor, GetPlatformIcon, s const AuthSessionsStore = findStoreLazy("AuthSessionsStore"); const UserSettingsModal = findByPropsLazy("saveAccountChanges", "open"); -const TimestampClasses = findByPropsLazy("timestampTooltip", "blockquoteContainer"); +const TimestampClasses = findByPropsLazy("timestamp", "blockquoteContainer"); const SessionIconClasses = findByPropsLazy("sessionIcon"); const BlobMask = findComponentByCodeLazy("!1,lowerBadgeSize:"); @@ -108,7 +108,7 @@ export default definePlugin({ renderTimestamp: ErrorBoundary.wrap(({ session, timeLabel }: { session: Session, timeLabel: string; }) => { return ( - + {props => ( {timeLabel} diff --git a/src/plugins/showHiddenThings/index.ts b/src/plugins/showHiddenThings/index.ts index 6d2ca7134..318e2bc73 100644 --- a/src/plugins/showHiddenThings/index.ts +++ b/src/plugins/showHiddenThings/index.ts @@ -69,7 +69,7 @@ export default definePlugin({ }, // fixes a bug where Members page must be loaded to see highest role, why is Discord depending on MemberSafetyStore.getEnhancedMember for something that can be obtained here? { - find: "#{intl::GUILD_MEMBER_MOD_VIEW_PERMISSION_GRANTED_BY_ARIA_LABEL}),allowOverflow:", + find: "#{intl::GUILD_MEMBER_MOD_VIEW_HIGHEST_ROLE}),children:", predicate: () => settings.store.showModView, replacement: { match: /(?<=\.highestRole\),)role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/, diff --git a/src/plugins/showTimeoutDuration/index.tsx b/src/plugins/showTimeoutDuration/index.tsx index 1bd68a0c3..6d13d9fc1 100644 --- a/src/plugins/showTimeoutDuration/index.tsx +++ b/src/plugins/showTimeoutDuration/index.tsx @@ -14,8 +14,8 @@ import { canonicalizeMatch } from "@utils/patches"; import definePlugin, { OptionType } from "@utils/types"; import { Message } from "@vencord/discord-types"; import { findComponentLazy } from "@webpack"; -import { ChannelStore, GuildMemberStore, Text, Tooltip } from "@webpack/common"; -import { FunctionComponent, ReactNode } from "react"; +import { ChannelStore, GuildMemberStore, Text, TooltipContainer } from "@webpack/common"; +import { ReactNode } from "react"; const countDownFilter = canonicalizeMatch("#{intl::MAX_AGE_NEVER}"); const CountDown = findComponentLazy(m => m.prototype?.render?.toString().includes(countDownFilter)); @@ -83,13 +83,13 @@ export default definePlugin({ } ], - TooltipWrapper: ErrorBoundary.wrap(({ message, children, text }: { message: Message; children: FunctionComponent; text: ReactNode; }) => { + TooltipWrapper: ErrorBoundary.wrap(({ message, children, text }: { message: Message; children: ReactNode; text: ReactNode; }) => { if (settings.store.displayStyle === DisplayStyle.Tooltip) - return {children}; + return {children}; return (
- {children} + {children} {renderTimeout(message, true)} timeout remaining From d77fa7c2064eb493589f6f488db0209402704fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=88=98?= Date: Tue, 7 Oct 2025 05:52:35 +0900 Subject: [PATCH 2/2] RevealAllSpoilers: use cmd key on macOS (#3697) --- src/plugins/revealAllSpoilers/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/revealAllSpoilers/index.ts b/src/plugins/revealAllSpoilers/index.ts index ead746b2b..ad1d89f96 100644 --- a/src/plugins/revealAllSpoilers/index.ts +++ b/src/plugins/revealAllSpoilers/index.ts @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import { Devs } from "@utils/constants"; +import { Devs, IS_MAC } from "@utils/constants"; import definePlugin from "@utils/types"; import { findByPropsLazy } from "@webpack"; @@ -39,9 +39,9 @@ export default definePlugin({ ], reveal(event: MouseEvent) { - const { ctrlKey, shiftKey, target } = event; + const { ctrlKey, metaKey, shiftKey, target } = event; - if (!ctrlKey) { return; } + if (!(IS_MAC ? metaKey : ctrlKey)) { return; } const { spoilerContent, hidden } = SpoilerClasses; const { messagesWrapper } = MessagesClasses;