From 4391fcc21bcbd6ce0620c0e078cc72db15aa0166 Mon Sep 17 00:00:00 2001 From: sadan4 <117494111+sadan4@users.noreply.github.com> Date: Wed, 12 Mar 2025 20:17:18 -0400 Subject: [PATCH 1/2] AccountPanelServerProfile: Fix not working (#3286) --- src/plugins/accountPanelServerProfile/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/accountPanelServerProfile/index.tsx b/src/plugins/accountPanelServerProfile/index.tsx index c347cc98..d9fc9de1 100644 --- a/src/plugins/accountPanelServerProfile/index.tsx +++ b/src/plugins/accountPanelServerProfile/index.tsx @@ -73,7 +73,7 @@ export default definePlugin({ group: true, replacement: [ { - match: /(?<=\.AVATAR_SIZE\);)/, + match: /(?<=\.AVATAR_SIZE\).{0,100};)(?=return)/, replace: "$self.useAccountPanelRef();" }, { From 6f5fd5d0b681cf9fdb34e2191090c020b3f2a042 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 14 Mar 2025 23:33:24 -0300 Subject: [PATCH 2/2] Fix BadgesAPI and IrcColors --- src/plugins/_api/badges/index.tsx | 2 +- src/plugins/ircColors/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx index d22fb72d..e63073ce 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -73,7 +73,7 @@ export default definePlugin({ find: "#{intl::PROFILE_USER_BADGES}", replacement: [ { - match: /(alt:" ","aria-hidden":!0,src:)(.{0,20}(\i)\.icon\))/, + match: /(alt:" ","aria-hidden":!0,src:)(.+?)(?=,)(?<=href:(\i)\.link.+?)/, replace: (_, rest, originalSrc, badge) => `...${badge}.props,${rest}${badge}.image??(${originalSrc})` }, { diff --git a/src/plugins/ircColors/index.ts b/src/plugins/ircColors/index.ts index af926043..3522eaad 100644 --- a/src/plugins/ircColors/index.ts +++ b/src/plugins/ircColors/index.ts @@ -73,8 +73,8 @@ export default definePlugin({ { find: "#{intl::GUILD_OWNER}),children:", replacement: { - match: /(?<=\.MEMBER_LIST}\),\[\]\),)(.+?color:)null!=.{0,50}?(?=,)/, - replace: (_, rest) => `ircColor=$self.calculateNameColorForListContext(arguments[0]),${rest}ircColor` + match: /(typingIndicatorRef:.+?},)(\i=.+?)color:null!=.{0,50}?(?=,)/, + replace: (_, rest1, rest2) => `${rest1}ircColor=$self.calculateNameColorForListContext(arguments[0]),${rest2}color:ircColor` }, predicate: () => settings.store.memberListColors }