From d320bc439dd13028c3e21a548a0f3080c5e5050e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 23 Jan 2026 14:41:14 -0500 Subject: [PATCH] fix blurnsfw again --- src/plugins/blurNsfw/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index 9a55dbc2f..66a0e2778 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -46,10 +46,12 @@ export default definePlugin({ patches: [ { find: "}renderEmbeds(", - replacement: [{ - match: /\(\)\(\i,\i\.\i(?=\),children:\[\i)/, - replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')" - }] + replacement: [ + { + match: /\(\)\(\i,\i\.\i(?<=this.renderShareClientTheme\(.{0,250})/, + replace: "$&+(this.props.channel.nsfw || $self.settings.store.blurAllChannels ? ' vc-nsfw-img': '')" + } + ] } ],