Fix Patches
This commit is contained in:
parent
6c7fed05cd
commit
d0706ac443
6 changed files with 8 additions and 8 deletions
|
|
@ -160,8 +160,8 @@ export default definePlugin({
|
|||
{
|
||||
find: 'tutorialId:"whos-online"',
|
||||
replacement: {
|
||||
match: /\((function\(\i\)\{let\{id:.*?#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.*?\}\))\}\);/,
|
||||
replace: "($self.wrapRoleGroup($1}));",
|
||||
match: /\((function\(\i\)\{let\{id:.*?#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.*?\}\))\}\)/,
|
||||
replace: "($self.wrapRoleGroup($1}))",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ export default definePlugin({
|
|||
replace: "$&&&!$self.isChannelMuted($1?.guildId,$1?.channelId)"
|
||||
},
|
||||
{
|
||||
match: /\.getEmbeddedActivitiesForGuild\((\i)\)(?=.flatMap\(\i=>)/,
|
||||
match: /\.getEmbeddedActivitiesForGuild\((\i)\)(?=.{0,100}\.flatMap\(\i=>)/,
|
||||
replace: "$&.filter(e=>!$self.isChannelMuted($1?.guildId,e?.channelId))"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ export default definePlugin({
|
|||
{
|
||||
find: '"LocalActivityStore"',
|
||||
replacement: {
|
||||
match: /function\(\i\)\{.{0,40}activity:(\i).*?\i\[\i\];/,
|
||||
replace: "$&$self.patchActivity($1);",
|
||||
match: /(function\(\i\)\{.{0,40}activity:(\i).{0,25}=\i),(\i)/,
|
||||
replace: "$1;$self.patchActivity($2);let $3",
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::STATUS_MENU_LABEL}",
|
||||
replacement: {
|
||||
match: /(popoutContainerRef:\i,forceOpen:\i.{0,25}\}\))(?=\])/,
|
||||
match: /(popoutContainerRef:\i,scrollerRef:\i.{0,50}\}\))(?=\])/,
|
||||
replace: "$1,$self.render()"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ export default definePlugin({
|
|||
predicate: () => settings.store.allCallTimers,
|
||||
replacement: [
|
||||
{
|
||||
match: /user:(\i).*?\.EMBEDDED.{0,25};(?=return 0!==(\i)\.length)/,
|
||||
match: /user:(\i).*?\.isEmbedded.{0,25};(?=return 0!==(\i)\.length)/,
|
||||
replace: "$&$2.push($self.renderTimer($1.id));",
|
||||
predicate: () => !settings.store.showWithoutHover,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ export default definePlugin({
|
|||
find: "#{intl::GUEST_NAME_SUFFIX})]",
|
||||
replacement: [
|
||||
{
|
||||
match: /#{intl::GUEST_NAME_SUFFIX}.{0,50}?""\](?<=guildId:(\i),.+?user:(\i).+?)/,
|
||||
match: /#{intl::GUEST_NAME_SUFFIX}.{0,50}?"".*?\](?<=guildId:(\i),.+?user:(\i).+?)/,
|
||||
replace: "$&,style:$self.getColorStyle($2.id,$1),"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue