From c5e554e48c89c0b386fef718799fb5b289204c40 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Thu, 16 May 2024 02:37:24 -0300 Subject: [PATCH] ViewIcon: Replace regex find with string find --- src/plugins/viewIcons/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/viewIcons/index.tsx b/src/plugins/viewIcons/index.tsx index fc74db0..104252f 100644 --- a/src/plugins/viewIcons/index.tsx +++ b/src/plugins/viewIcons/index.tsx @@ -221,7 +221,7 @@ export default definePlugin({ }, // User DMs top small icon { - find: /HiddenVisually,{children:\i\.\i\.Messages\.DIRECT_MESSAGE/, + find: ".cursorPointer:null,children", replacement: { match: /.Avatar,.+?src:(.+?\))(?=[,}])/, replace: (m, avatarUrl) => `${m},onClick:()=>$self.openImage(${avatarUrl})`