From 244388a08b10ec6fdb376955a39f18f317c184f9 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:41:38 -0400 Subject: [PATCH] Revert "Remove old ViewIcons patch" This reverts commit bd80b886ba53e96fc5913623da25bc8810a6c390. --- src/plugins/viewIcons/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/viewIcons/index.tsx b/src/plugins/viewIcons/index.tsx index 38d77554..e48fa82e 100644 --- a/src/plugins/viewIcons/index.tsx +++ b/src/plugins/viewIcons/index.tsx @@ -203,6 +203,14 @@ export default definePlugin({ 'onClick:ev=>$1&&ev.target.style.backgroundImage&&$self.openImage($2),style:{cursor:$1?"pointer":void 0,' } })), + // Old User DMs "User Profile" popup in the right + { + find: ".avatarPositionPanel", + replacement: { + match: /(avatarWrapperNonUserBot.{0,50})onClick:(\i\|\|\i)\?void 0(?<=,avatarSrc:(\i).+?)/, + replace: "$1style:($2)?{cursor:\"pointer\"}:{},onClick:$2?()=>{$self.openImage($3)}" + } + }, // Group DMs top small & large icon { find: /\.recipients\.length>=2(?!