Patch Fixes

This commit is contained in:
thororen1234 2024-12-08 21:22:48 -05:00
parent 405f46791a
commit 7a0b240500
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ export default definePlugin({
find: "UNREAD_IMPORTANT:", find: "UNREAD_IMPORTANT:",
replacement: [ replacement: [
{ {
match: /\.name\),.{0,120}\.children.+?:null/, match: /\.name,{.{0,140}\.children.+?:null/,
replace: "$&,$self.CountBadge({channel: arguments[0].channel,})", replace: "$&,$self.CountBadge({channel: arguments[0].channel,})",
predicate: () => !settings.store.replaceWhiteDot predicate: () => !settings.store.replaceWhiteDot
}, },

View file

@ -178,13 +178,13 @@ export default definePlugin({
// Add the hidden eye icon if the channel is hidden // Add the hidden eye icon if the channel is hidden
{ {
predicate: () => settings.store.showMode === ShowMode.EyeIconRight, predicate: () => settings.store.showMode === ShowMode.EyeIconRight,
match: /\.name\),.{0,120}\.children.+?:null(?<=,channel:(\i).+?)/, match: /\.name,{.{0,140}\.children.+?:null(?<=,channel:(\i).+?)/,
replace: (m, channel) => `${m},$self.isHiddenChannel(${channel})?$self.EyeRightIcon():null` replace: (m, channel) => `${m},$self.isHiddenChannel(${channel})?$self.EyeRightIcon():null`
}, },
// Add the hidden lock icon if the channel is hidden // Add the hidden lock icon if the channel is hidden
{ {
predicate: () => settings.store.showMode === ShowMode.LockIconRight, predicate: () => settings.store.showMode === ShowMode.LockIconRight,
match: /\.name\),.{0,120}\.children.+?:null(?<=,channel:(\i).+?)/, match: /\.name,{.{0,140}\.children.+?:null(?<=,channel:(\i).+?)/,
replace: (m, channel) => `${m},$self.isHiddenChannel(${channel})?$self.LockRightIcon():null` replace: (m, channel) => `${m},$self.isHiddenChannel(${channel})?$self.LockRightIcon():null`
}, },
] ]