Fix broken patches

This commit is contained in:
Nuckyz 2026-07-17 12:33:40 -03:00
parent df4b2efcc5
commit 0a5dfaa1ca
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
3 changed files with 4 additions and 4 deletions

View file

@ -268,7 +268,7 @@ export default definePlugin({
predicate: () => settings.store.closeAllHomeButton,
replacement: {
// Close all folders when clicking the home button
match: /(?<=onClick:\(\)=>{)(?=.{0,300}"discodo")/,
match: /(?<=onClick:(?:function)?\(\)(?:=>)?{)(?=.{0,300}"discodo")/,
replace: "$self.closeFolders();"
}
}

View file

@ -55,8 +55,8 @@ export default definePlugin({
replace: "$self.DecorationGridItem=$1;",
},
{
match: /(?<==)\i=>{let{user:\i,avatarDecoration/,
replace: "$self.DecorationGridDecoration=$&",
match: /(?<=(?:(\i)=)?)(?:\i=>|function (\i)\(\i\)){let{user:\i,avatarDecoration/,
replace: (m, arrowFunctionName, functionName) => `$self.DecorationGridDecoration=${arrowFunctionName ?? functionName}${arrowFunctionName ? "" : ";"}${m}`,
},
// Remove NEW label from decor avatar decorations
{

View file

@ -45,7 +45,7 @@ export default definePlugin({
replacement: [
{
// if (inlinedCalculatePlayingCount(a,b) >= limit) return;
match: /(BURST_REACTION_EFFECT_PLAY:\i=>{.+?if\()(\(\(\i,\i\)=>.+?\(\i,\i\))>=5+?(?=\))/,
match: /(BURST_REACTION_EFFECT_PLAY:(?:\i=>|function\(\i\)){.+?if\()(\(?(?:function)?\(\i,\i\)(?:=>)?{.+?\(\i,\i\))>=5+?(?=\))/,
replace: (_, rest, playingCount) => `${rest}!$self.shouldPlayBurstReaction(${playingCount})`
}
]