roleColorEverywhere: thread role color (again) (#2098)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
60bc823eab
commit
11d3165009
1 changed files with 10 additions and 4 deletions
|
@ -72,10 +72,6 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: 'tutorialId:"whos-online',
|
find: 'tutorialId:"whos-online',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
|
||||||
match: /\i.roleIcon,\.\.\.\i/,
|
|
||||||
replace: "$&,color:$self.roleGroupColor(arguments[0])"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
match: /null,\i," — ",\i\]/,
|
match: /null,\i," — ",\i\]/,
|
||||||
replace: "null,$self.roleGroupColor(arguments[0])]"
|
replace: "null,$self.roleGroupColor(arguments[0])]"
|
||||||
|
@ -83,6 +79,16 @@ export default definePlugin({
|
||||||
],
|
],
|
||||||
predicate: () => settings.store.memberList,
|
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",
|
find: "renderPrioritySpeaker",
|
||||||
replacement: [
|
replacement: [
|
||||||
|
|
Loading…
Reference in a new issue