Fix VolumeBooster and improve ContextMenuAPI patch (#793)

Co-authored-by: V <vendicated@riseup.net>
main
Nuckyz 2 years ago committed by GitHub
parent 12ffb9d642
commit 38f3aac98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:[],"
}
}
]

@ -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:$&"
},
{

Loading…
Cancel
Save