From 5cd0b86c1b0fc7672df908d1597a98f8d6ee91ec Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 27 Feb 2025 22:54:21 -0500 Subject: [PATCH] Fixes For Canary --- src/equicordplugins/deadMembers/index.tsx | 2 +- src/equicordplugins/questCompleter/index.tsx | 4 ++-- src/plugins/showMeYourName/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/equicordplugins/deadMembers/index.tsx b/src/equicordplugins/deadMembers/index.tsx index 1da633c8..2719f8bb 100644 --- a/src/equicordplugins/deadMembers/index.tsx +++ b/src/equicordplugins/deadMembers/index.tsx @@ -24,7 +24,7 @@ export default definePlugin({ { find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}", replacement: { - match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\(\i\.Fragment,{children:)\i(?=}\),)/, + match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\i:void 0\)\()\i/, replace: "$self.wrapForumAuthor({...$1,$2},$&)" } }, diff --git a/src/equicordplugins/questCompleter/index.tsx b/src/equicordplugins/questCompleter/index.tsx index e06c565f..11bf8ae3 100644 --- a/src/equicordplugins/questCompleter/index.tsx +++ b/src/equicordplugins/questCompleter/index.tsx @@ -237,8 +237,8 @@ export default definePlugin({ { find: "\"invite-button\"", replacement: { - match: /(\i\.Fragment,{children:)(\i\i)/, - replace: "$1[$self.renderQuestButton(),...$2]" + match: /\i&&(\i\i\.push).{0,50}"current-speaker"/, + replace: "$1($self.renderQuestButton()),$&" } }, { diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index 2baea8a1..0306b7d5 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -56,8 +56,8 @@ export default definePlugin({ { find: '?"@":""', replacement: { - match: /(?<=onContextMenu:\i,children:).*?\)}/, - replace: "$self.renderUsername(arguments[0])}" + match: /(?<=children:)\(\i\?"@":""\)\+\i(?=,|\})/, + replace: "$self.renderUsername(arguments[0])" } }, ],