Fix VolumeBooster and improve ContextMenuAPI patch (#793)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
12ffb9d642
commit
38f3aac98d
2 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue