roleColorEverywhere: thread role color (again) (#2098)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
AutumnVN 2024-01-16 10:00:53 +07:00 committed by Vendicated
parent 60bc823eab
commit 11d3165009
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -72,10 +72,6 @@ export default definePlugin({
{
find: 'tutorialId:"whos-online',
replacement: [
{
match: /\i.roleIcon,\.\.\.\i/,
replace: "$&,color:$self.roleGroupColor(arguments[0])"
},
{
match: /null,\i," — ",\i\]/,
replace: "null,$self.roleGroupColor(arguments[0])]"
@ -83,6 +79,16 @@ export default definePlugin({
],
predicate: () => settings.store.memberList,
},
{
find: ".Messages.THREAD_BROWSER_PRIVATE",
replacement: [
{
match: /children:\[\i," — ",\i\]/,
replace: "children:[$self.roleGroupColor(arguments[0])]"
},
],
predicate: () => settings.store.memberList,
},
{
find: "renderPrioritySpeaker",
replacement: [