Fix BlurNSFW and ShowMeYourName for latest version (#3517)

This commit is contained in:
sadan4 2025-06-27 12:45:22 -04:00 committed by GitHub
parent decb49fc0a
commit 864ee7c7ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -43,7 +43,7 @@ export default definePlugin({
patches: [ patches: [
{ {
find: ".embedWrapper,embed", find: "}renderEmbeds(",
replacement: [{ replacement: [{
match: /\.container/, match: /\.container/,
replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')" replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')"

View file

@ -48,10 +48,9 @@ export default definePlugin({
authors: [Devs.Rini, Devs.TheKodeToad], authors: [Devs.Rini, Devs.TheKodeToad],
patches: [ patches: [
{ {
find: '"BaseUsername"', find: '="SYSTEM_TAG"',
replacement: { replacement: {
/* TODO: remove \i+\i once change makes it to stable */ match: /(?<=onContextMenu:\i,children:)\i/,
match: /(?<=onContextMenu:\i,children:)(?:\i\+\i|\i)/,
replace: "$self.renderUsername(arguments[0])" replace: "$self.renderUsername(arguments[0])"
} }
}, },