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: [
|
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': '')"
|
||||||
|
|
|
||||||
|
|
@ -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])"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue