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: [
{
find: ".embedWrapper,embed",
find: "}renderEmbeds(",
replacement: [{
match: /\.container/,
replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')"

View file

@ -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])"
}
},