Fix Patches
This commit is contained in:
parent
147dc80987
commit
f46e572468
4 changed files with 15 additions and 16 deletions
|
|
@ -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($&)"
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
|
||||
|
|
|
|||
|
|
@ -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();"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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})`
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue