RoleColorEverywhere: improve patch (#750)

This commit is contained in:
prism 2026-02-08 15:53:36 +01:00 • committed by GitHub
parent 8bb0d8314d
commit 46b0d69321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,8 +107,8 @@ export default definePlugin({
find: 'tutorialId:"whos-online',
replacement: [
{
match: /(#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.+}\):null,).{0,100}?— ",\i\]\}\)\]/,
replace: (_, rest) => `${rest}$self.RoleGroupColor(arguments[0])]`
match: /,"aria-hidden":!0,children:\[.{0,200}— ",\i\]\}\)\]/,
replace: ',"aria-hidden":!0,children:[$self.RoleGroupColor(arguments[0])]'
},
],
predicate: () => settings.store.memberList