From ba37eec5eb007c95ee8acf89a5c91d7cb3e80b84 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:23:12 -0400 Subject: [PATCH] Fixes --- src/equicordplugins/clientSideBlock/index.tsx | 4 ++-- src/equicordplugins/statusPresets/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/clientSideBlock/index.tsx b/src/equicordplugins/clientSideBlock/index.tsx index d7c5f657..ee0ee741 100644 --- a/src/equicordplugins/clientSideBlock/index.tsx +++ b/src/equicordplugins/clientSideBlock/index.tsx @@ -189,8 +189,8 @@ export default definePlugin({ find: "PrivateChannel.renderAvatar", replacement: { // horror but it works - match: /function\(\i,(\i),\i\){.*,\[\i,\i,\i\]\);/, - replace: "$&if($1.rawRecipients[0] != null){if($1.rawRecipients[0].id != null){if($self.shouldHideUser($1.rawRecipients[0].id)) return null;}}" + match: /(function\(\i,(\i),\i\){.*)(return \i\.isMultiUserDM\(\))/, + replace: "$1if($2.rawRecipients[0] != null){if($2.rawRecipients[0].id != null){if($self.shouldHideUser($2.rawRecipients[0].id)) return null;}}$3" } }, diff --git a/src/equicordplugins/statusPresets/index.tsx b/src/equicordplugins/statusPresets/index.tsx index 534b525a..6761caa3 100644 --- a/src/equicordplugins/statusPresets/index.tsx +++ b/src/equicordplugins/statusPresets/index.tsx @@ -138,7 +138,7 @@ export default definePlugin({ } }, { - find: "Messages.STATUS_MENU_LABEL", + find: /"aria-label":.{0,3}\.Messages.STATUS_MENU_LABEL/, replacement: { match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/, replace: "$self.render($2, $3),false&&$1"