From c8c5d715795f1609cf1c977689fe7db47d6e74d0 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:06:01 -0500 Subject: [PATCH 1/3] fix theme attributes patch --- src/plugins/themeAttributes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/themeAttributes/index.ts b/src/plugins/themeAttributes/index.ts index beb108af8..46574a5d6 100644 --- a/src/plugins/themeAttributes/index.ts +++ b/src/plugins/themeAttributes/index.ts @@ -29,9 +29,9 @@ export default definePlugin({ // Add data-author-id and data-is-self to all messages { - find: ".messageListItem", + find: ".referencedUsernameProfile,referencedAvatarProfile:", replacement: { - match: /\.messageListItem(?=,"aria)/, + match: /\.\i(?=,"aria-setsize":-1,children:.+?#{intl::MESSAGE_A11Y_ROLE_DESCRIPTION})/, replace: "$&,...$self.getMessageProps(arguments[0])" } }, From 3fca6ade4c0700c32256422899e65c26d0ce41b5 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:08:19 -0500 Subject: [PATCH 2/3] improve find --- src/plugins/imageFilename/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/imageFilename/index.ts b/src/plugins/imageFilename/index.ts index 9a0c1994b..1256361af 100644 --- a/src/plugins/imageFilename/index.ts +++ b/src/plugins/imageFilename/index.ts @@ -27,7 +27,7 @@ export default definePlugin({ patches: [ { - find: '"calc(100% + 1px)":"100%"', + find: ".RESPONSIVE?", replacement: { match: /(?="data-role":"img","data-safe-src":)(?<=href:(\i).{0,30})/, replace: "title:$self.getTitle($1)," From 6bc0f7020c3b00261f4b714484457a1314016945 Mon Sep 17 00:00:00 2001 From: Elvyra <88881326+EepyElvyra@users.noreply.github.com> Date: Fri, 23 Jan 2026 22:00:51 +0100 Subject: [PATCH 3/3] fix pip --- src/plugins/pictureInPicture/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/pictureInPicture/index.tsx b/src/plugins/pictureInPicture/index.tsx index 1d75319a8..d5bf3fee5 100644 --- a/src/plugins/pictureInPicture/index.tsx +++ b/src/plugins/pictureInPicture/index.tsx @@ -28,9 +28,9 @@ export default definePlugin({ settings, patches: [ { - find: ".removeMosaicItemHoverButton),", + find: '["VIDEO","CLIP","AUDIO"]', replacement: { - match: /(\.nonMediaMosaicItem\]:.{0,40}children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/, + match: /("div",{className:.+?children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/, replace: (_, rest, origChildren, showDownload, isVisualMediaType) => `${rest}[${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton(),...${origChildren}]` } }