BetterUserArea: fix patch (#664)

* BetterUserArea: fix patch

* t
This commit is contained in:
prism 2026-01-20 22:52:08 +01:00 • committed by GitHub
parent 2c4631337b
commit f91329ef0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
},
{