diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index f8dac811..1b646318 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -45,8 +45,8 @@ export default definePlugin({ { find: ".embedWrapper,embed", replacement: [{ - match: /(?<=channel:\s*(n)).*?\.container/g, - replace: "$&+($1.nsfw?' vc-nsfw-img':'')" + match: /\.container(?=.+?a&&(this))/g, + replace: "$&+($1.props.channel.nsfw? ' vc-nsfw-img': '')" }] }, ],