From 6758604d36dd088445ac13fe0aabdf492b099398 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:17:38 -0400 Subject: [PATCH] Fix all broken patches --- src/equicordplugins/betterInvites/index.tsx | 14 +++++++------- src/equicordplugins/customTimestamps/index.tsx | 8 ++++---- src/plugins/betterSessions/index.tsx | 4 ++-- src/plugins/showHiddenThings/index.ts | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/equicordplugins/betterInvites/index.tsx b/src/equicordplugins/betterInvites/index.tsx index c3c0b6fde..54cc652d6 100644 --- a/src/equicordplugins/betterInvites/index.tsx +++ b/src/equicordplugins/betterInvites/index.tsx @@ -45,23 +45,23 @@ export default definePlugin({ ] }, { - find: '"disableGuildNameClick"', + find: ".guildNameContainer,onClick:", replacement: [ { - match: /(?=children:\i\.name\}\)\):)/, + match: /(?=children:\i\.name\}\).{0,100}\.guildNameContainer)/, replace: "onClick:$self.Lurkable(arguments[0].invite?.guild?.id,arguments[0].invite?.guild?.features)," }, { - match: /\),\{profile:\i,disableGuildNameClick:\i/, - replace: "$&,invite:arguments[0].invite" + match: /(\.nameContainer.{0,100}disableGuildNameClick:\i)/, + replace: "$1,invite:arguments[0].invite" }, { - match: /\}\)\)\}\),\i/, + match: /disableGuildNameClick:\i.{0,50}\}\),\i/, replace: "$&,$self.RenderTip(arguments[0].invite?.expires_at)" }, { - match: /(?<=text:(\i\.name).*?\]\}\))/, - replace: "$&,$self.Header(arguments[0].invite?.inviter,$1)" + match: /\.nameContainer.{0,200}\]\}\)/, + replace: "$&,$self.Header(arguments[0].invite?.inviter,arguments[0].profile.name)" } ] }, diff --git a/src/equicordplugins/customTimestamps/index.tsx b/src/equicordplugins/customTimestamps/index.tsx index f9eab235d..439a8acd4 100644 --- a/src/equicordplugins/customTimestamps/index.tsx +++ b/src/equicordplugins/customTimestamps/index.tsx @@ -264,17 +264,17 @@ export default definePlugin({ }, { // Tooltips when hovering over message timestamps - match: /(?<=text:)\(\)=>\(0,\i.\i\)\((\i),"LLLL"\)(?=,)/, + match: /\(0,\i.\i\)\((\i),"LLLL"\)/, replace: "$self.renderTimestamp($1,'tooltip')", }, ] }, { - find: ".full,tooltipClassName:", + find: ".full,children:", replacement: { // Tooltips for timestamp markdown (e.g. ) - match: /text:(\i).full,/, - replace: "text: $self.renderTimestamp(new Date($1.timestamp*1000),'tooltip')," + match: /(\i).full(?=,children:)/, + replace: "$self.renderTimestamp(new Date($1.timestamp*1000),'tooltip')" } } ], 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..aa8c6489b 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_PERMISSION_GRANTED_BY_ARIA_LABEL}),text:", predicate: () => settings.store.showModView, replacement: { match: /(?<=\.highestRole\),)role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/,