parent
2c4631337b
commit
f91329ef0e
1 changed files with 11 additions and 4 deletions
|
|
@ -63,10 +63,17 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
|
||||
replacement: {
|
||||
match: /\{showRefreshedAudioContextMenu:(\i)\}=(?=.+?location:"\w+Button")/g,
|
||||
replace: "{showRefreshedAudioContextMenu:$1}=$self.settings.store.removeAudioMenus?{showRefreshedAudioContextMenu:!1}:"
|
||||
},
|
||||
replacement: [
|
||||
{
|
||||
match: /className:\i\.micButtonWithMenu,/g,
|
||||
replace: ""
|
||||
},
|
||||
{
|
||||
// TODO: MAKE THIS BETTER
|
||||
match: /,\(0,\i\.jsxs?\).{0,130}\.buttonChevron.{0,530}\}\)(?=\])/g,
|
||||
replace: ""
|
||||
}
|
||||
],
|
||||
predicate: () => settings.store.removeAudioMenus
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue