From fd255333310e54c830b82a7a3920271e8c086208 Mon Sep 17 00:00:00 2001 From: Etorix <92535668+EtorixDev@users.noreply.github.com> Date: Wed, 14 Jan 2026 07:29:30 -0800 Subject: [PATCH] SMYN: Patch Fixes. (#641) * Fixes. * Remove deprecated patches. * Remove leftover. --- src/plugins/showMeYourName/index.tsx | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index 7c798952c..cc0cac58e 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -921,8 +921,8 @@ export default definePlugin({ // Attach the group ID to their messages to allow animating gradients within a group. find: "CUSTOM_GIFT?\"\":", replacement: { - match: /(\(\i,\i,\i\);)(let \i=\i.id===\i(?:.{0,500}?)hovering:(\i))/, - replace: "$1arguments[0].message.showMeYourNameGroupId=!!arguments[0].groupId?`g-${arguments[0].groupId}`:null;$self.handleHoveringMessage(arguments[0].message,$3);$2" + match: /(isHovered:(\i).{0,1300}?\(\i,\i,\i\);)(let \i=\i.id===\i)/, + replace: "$1arguments[0].message.showMeYourNameGroupId=!!arguments[0].groupId?`g-${arguments[0].groupId}`:null;$self.handleHoveringMessage(arguments[0].message,$2);$3" }, }, { @@ -965,24 +965,6 @@ export default definePlugin({ replace: "$1showMeYourNameNickname:$2=$self.getMemberListProfilesReactionsVoiceNameText({...arguments[0],type:\"profilesPopout\"})??(arguments[0].nickname)" }, }, - { - // Tags *should* contain the guild ID nested in its structure, but on the first time - // loading a guild member's preview profile, it will be undefined. This patch bypasses - // that by passing the guild ID as its own prop. - find: "\"UserProfilePopoutBody\"}", - replacement: { - match: /(pronouns,tags:)/, - replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:" - } - }, - { - // Same as above, but for bot members. - find: "popularApplicationCommandIds)!=null&&null", - replacement: { - match: /(pronouns,tags:)/, - replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:" - } - }, { // Replace names in the profile tooltip for switching between guild and global profiles. // You must open a profile modal before the code this is patching will be searchable. @@ -1013,7 +995,7 @@ export default definePlugin({ replacement: [ { // Replace names in reaction popouts. - match: /children:(\[null!=(?:.{0,300}?)forceUsername:!0}\)\])/, + match: /children:(null!=(?:.{0,300}?)children:\i}\))/, replace: "style:{\"overflow\":\"visible\"},children:($self.getMemberListProfilesReactionsVoiceNameElement({user:arguments[0].user,guildId:arguments[0].guildId,type:\"reactionsPopout\"}))??($1)" }, {