From 864ee7c7ad833508c18eb888f730fc341df5f722 Mon Sep 17 00:00:00 2001 From: sadan4 <117494111+sadan4@users.noreply.github.com> Date: Fri, 27 Jun 2025 12:45:22 -0400 Subject: [PATCH] Fix BlurNSFW and ShowMeYourName for latest version (#3517) --- src/plugins/blurNsfw/index.ts | 2 +- src/plugins/showMeYourName/index.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index c4023f09..c1670fe8 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -43,7 +43,7 @@ export default definePlugin({ patches: [ { - find: ".embedWrapper,embed", + find: "}renderEmbeds(", replacement: [{ match: /\.container/, replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')" diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx index ac727f69..ba92e82a 100644 --- a/src/plugins/showMeYourName/index.tsx +++ b/src/plugins/showMeYourName/index.tsx @@ -48,10 +48,9 @@ export default definePlugin({ authors: [Devs.Rini, Devs.TheKodeToad], patches: [ { - find: '"BaseUsername"', + find: '="SYSTEM_TAG"', replacement: { - /* TODO: remove \i+\i once change makes it to stable */ - match: /(?<=onContextMenu:\i,children:)(?:\i\+\i|\i)/, + match: /(?<=onContextMenu:\i,children:)\i/, replace: "$self.renderUsername(arguments[0])" } },