diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index 3b51b2060..779fc895d 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -137,7 +137,7 @@ export default definePlugin({ { find: ".reactorDefault", replacement: { - match: /,onContextMenu:\i=>.{0,15}\((\i),(\i),(\i)\).{0,300}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,