RoleColorEverywhere: fix reactions

This commit is contained in:
Vendicated 2025-11-15 12:44:38 +01:00
parent fb3d927f8c
commit 9c3163da5e
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -136,7 +136,7 @@ export default definePlugin({
{
find: ".reactorDefault",
replacement: {
match: /,onContextMenu:\i=>.{0,15}\((\i),(\i),(\i)\).{0,250}tag:"strong"/,
match: /tag:"strong"(?=.{0,50}\i\.name)(?<=onContextMenu:.{0,15}\((\i),(\i),\i\).+?)/,
replace: "$&,style:$self.getColorStyle($2?.id,$1?.channel?.id)"
},
predicate: () => settings.store.reactorsList,