fix IrcColors and ShowMeYourName (#3343)

This commit is contained in:
Elvyra 2025-04-04 16:22:46 +02:00 committed by GitHub
parent 96ee0c1351
commit eeea8d9291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ export default definePlugin({
{
find: '="SYSTEM_TAG"',
replacement: {
match: /(?<=className:\i\.username,style:.{0,50}:void 0,)/,
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0,)/,
replace: "style:{color:$self.calculateNameColorForMessageContext(arguments[0])},"
}
},

View file

@ -50,7 +50,7 @@ export default definePlugin({
{
find: '?"@":""',
replacement: {
match: /(?<=children:)\(\i\?"@":""\)\+\i(?=,|\})/,
match: /(?<=onContextMenu:\i,children:)\i\+\i/,
replace: "$self.renderUsername(arguments[0])"
}
},