Fix VolumeBooster and improve ContextMenuAPI patch (#793)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
12ffb9d642
commit
38f3aac98d
@ -35,8 +35,8 @@ export default definePlugin({
|
|||||||
find: ".Menu,{",
|
find: ".Menu,{",
|
||||||
all: true,
|
all: true,
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\.jsxs?\)\(\i\.Menu,)\{/g,
|
match: /Menu,{(?<=\.jsxs?\)\(\i\.Menu,{)/g,
|
||||||
replace: "{contextMenuApiArguments:typeof arguments!=='undefined'?arguments:[],"
|
replace: "$&contextMenuApiArguments:typeof arguments!=='undefined'?arguments:[],"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -56,7 +56,7 @@ export default definePlugin({
|
|||||||
find: "AudioContextSettingsMigrated",
|
find: "AudioContextSettingsMigrated",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(?<=updateAsync\("audioContextSettings".{0,350}return \i\.volume=)\i(?=})/,
|
match: /(?<=isLocalMute\(\i,\i\),volume:.+?volume:)\i(?=})/,
|
||||||
replace: "$&>200?200:$&"
|
replace: "$&>200?200:$&"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user