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': '')" + } + ] } ],