Fix BlurNSFW and ShowMeYourName for latest version (#3517)
This commit is contained in:
parent
decb49fc0a
commit
864ee7c7ad
2 changed files with 3 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
find: ".embedWrapper,embed",
|
||||
find: "}renderEmbeds(",
|
||||
replacement: [{
|
||||
match: /\.container/,
|
||||
replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')"
|
||||
|
|
|
|||
|
|
@ -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])"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue