From 84153993a76bc2090e3793c9b032330eed67ce07 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 24 Jun 2026 00:36:50 -0400 Subject: [PATCH] NoMosaic: Fix Patch --- src/plugins/alwaysExpandRoles/index.ts | 4 ++-- src/plugins/noMosaic/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/alwaysExpandRoles/index.ts b/src/plugins/alwaysExpandRoles/index.ts index a052883d3..e255b48b4 100644 --- a/src/plugins/alwaysExpandRoles/index.ts +++ b/src/plugins/alwaysExpandRoles/index.ts @@ -52,8 +52,8 @@ export default definePlugin({ replace: "false" }, { - match: /\i\.length<\i\.length/, - replace: "false", + match: /return \i\.length<\i\.length/, + replace: "return false", predicate: () => settings.store.hideArrow } ] diff --git a/src/plugins/noMosaic/index.ts b/src/plugins/noMosaic/index.ts index b5fffba00..af2d2e049 100644 --- a/src/plugins/noMosaic/index.ts +++ b/src/plugins/noMosaic/index.ts @@ -30,8 +30,8 @@ export default definePlugin({ { find: '"PLAINTEXT_PREVIEW":"OTHER"', replacement: { - match: /"IMAGE"===\i\|\|"VIDEO"===\i\|\|"CLIP"===\i/, - replace: "false" + match: /return"IMAGE"===\i\|\|"VIDEO"===\i\|\|"CLIP"===\i/, + replace: "return false" } }, {