diff --git a/src/plugins/apiContextMenu.ts b/src/plugins/apiContextMenu.ts index cb85c4ff..0eaca78b 100644 --- a/src/plugins/apiContextMenu.ts +++ b/src/plugins/apiContextMenu.ts @@ -35,8 +35,8 @@ export default definePlugin({ find: ".Menu,{", all: true, replacement: { - match: /(?<=\.jsxs?\)\(\i\.Menu,)\{/g, - replace: "{contextMenuApiArguments:typeof arguments!=='undefined'?arguments:[]," + match: /Menu,{(?<=\.jsxs?\)\(\i\.Menu,{)/g, + replace: "$&contextMenuApiArguments:typeof arguments!=='undefined'?arguments:[]," } } ] diff --git a/src/plugins/volumeBooster.discordDesktop.ts b/src/plugins/volumeBooster.discordDesktop.ts index b77af570..ac112155 100644 --- a/src/plugins/volumeBooster.discordDesktop.ts +++ b/src/plugins/volumeBooster.discordDesktop.ts @@ -56,7 +56,7 @@ export default definePlugin({ find: "AudioContextSettingsMigrated", replacement: [ { - match: /(?<=updateAsync\("audioContextSettings".{0,350}return \i\.volume=)\i(?=})/, + match: /(?<=isLocalMute\(\i,\i\),volume:.+?volume:)\i(?=})/, replace: "$&>200?200:$&" }, {