Fix Patches

This commit is contained in:
thororen1234 2026-07-17 10:56:27 -04:00
parent 147dc80987
commit f46e572468
No known key found for this signature in database
4 changed files with 15 additions and 16 deletions

View file

@ -60,18 +60,17 @@ export default definePlugin({
}
},
{
find: ".CLIPS_FRAME_RATE,{",
replacement: {
match: /\[\{.{0,25}\i.\i.FPS_15.{0,500}\}\]/,
replace: " $self.patchFramerates($&)"
}
},
{
find: ".CLIPS_LENGTH,{",
replacement: {
match: /\[\{.{0,25}\i.\i.SECONDS_30.{0,500}\}\]/,
replace: " $self.patchTimeslots($&)"
}
find: ".SECONDS_30,label:",
replacement: [
{
match: /\[\{.{0,25}\i.\i.SECONDS_30.{0,500}\}\]/,
replace: " $self.patchTimeslots($&)"
},
{
match: /\[\{.{0,25}\i.\i.FPS_15.{0,500}\}\]/,
replace: " $self.patchFramerates($&)"
}
]
},
],

View file

@ -274,7 +274,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: /(?=function (\i)\(\i\){let{user:\i,avatarDecoration)/,
replace: "$self.DecorationGridDecoration=$1;",
},
// 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\()(\(\(\i,\i\)=>.+?\(\i,\i\))>=5+?(?=\))/,
replace: (_, rest, playingCount) => `${rest}!$self.shouldPlayBurstReaction(${playingCount})`
}
]