diff --git a/src/equicordplugins/clipsEnhancements.discordDesktop/index.tsx b/src/equicordplugins/clipsEnhancements.discordDesktop/index.tsx index 9e7b69945..31df34526 100644 --- a/src/equicordplugins/clipsEnhancements.discordDesktop/index.tsx +++ b/src/equicordplugins/clipsEnhancements.discordDesktop/index.tsx @@ -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($&)" + } + ] }, ], diff --git a/src/plugins/betterFolders/index.tsx b/src/plugins/betterFolders/index.tsx index 75de43cc7..59f65941d 100644 --- a/src/plugins/betterFolders/index.tsx +++ b/src/plugins/betterFolders/index.tsx @@ -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();" } } diff --git a/src/plugins/decor/index.tsx b/src/plugins/decor/index.tsx index 6103b2e92..86b540df2 100644 --- a/src/plugins/decor/index.tsx +++ b/src/plugins/decor/index.tsx @@ -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 { diff --git a/src/plugins/superReactionTweaks/index.ts b/src/plugins/superReactionTweaks/index.ts index 2ea268040..2c9ebac08 100644 --- a/src/plugins/superReactionTweaks/index.ts +++ b/src/plugins/superReactionTweaks/index.ts @@ -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})` } ]