fix SpotifyControls, GameActivityToggle, AccountPanelServerProfile (#3999)

This commit is contained in:
Elvyra 2026-02-20 09:20:43 +01:00 • committed by GitHub
parent 5fc677bb26
commit dc25c8f046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View file

@ -67,7 +67,7 @@ export default definePlugin({
patches: [
{
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
find: ".WIDGETS_RTC_UPSELL_COACHMARK)",
group: true,
replacement: [
{

View file

@ -127,7 +127,7 @@ export default definePlugin({
predicate: () => settings.store.disableFade
},
{ // Load menu TOC eagerly
find: "#{intl::USER_SETTINGS_WITH_BUILD_OVERRIDE}",
find: "handleOpenSettingsContextMenu=",
replacement: {
match: /(?=handleOpenSettingsContextMenu=.{0,100}?null!=\i&&.{0,100}?(await [^};]*?\)\)))/,
replace: "_vencordBetterSettingsEagerLoad=(async ()=>$1)();"

View file

@ -87,7 +87,7 @@ export default definePlugin({
},
// Current user area, at bottom of channels/dm list
{
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
find: ".WIDGETS_RTC_UPSELL_COACHMARK),",
replacement: [
// Use Decor avatar decoration hook
{

View file

@ -112,7 +112,7 @@ export default definePlugin({
patches: [
{
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
find: ".WIDGETS_RTC_UPSELL_COACHMARK),",
replacement: {
match: /children:\[(?=.{0,25}?accountContainerRef)/,
replace: "children:[$self.GameActivityToggleButton(arguments[0]),"

View file

@ -438,11 +438,11 @@ export default definePlugin({
},
},
{
find: 'className:"channelMention",children:',
find: 'getConfig({location:"channel_mention"})',
replacement: {
// Show inside voice channel instead of trying to join them when clicking on a channel mention
match: /(?<=getChannel\(\i\);null!=(\i))(?=.{0,100}?selectVoiceChannel)/,
replace: (_, channel) => `&&!$self.isHiddenChannel(${channel})`
match: /(?<=getChannel\(\i\);if\(null!=(\i)).{0,200}?return void (?=\i\.default\.selectVoiceChannel)/,
replace: (m, channel) => `${m}!$self.isHiddenChannel(${channel})&&`
}
},
{

View file

@ -53,10 +53,10 @@ export default definePlugin({
},
patches: [
{
find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}",
find: ".WIDGETS_RTC_UPSELL_COACHMARK),",
replacement: {
// react.jsx)(AccountPanel, { ..., showTaglessAccountPanel: blah })
match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,hidePrivateData:)/,
match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,occluded:)/,
// react.jsx(WrapperComponent, { VencordOriginal: AccountPanel, ...
replace: "$self.PanelWrapper,{VencordOriginal:$1,"
}

View file

@ -102,7 +102,7 @@ export default definePlugin({
patches: [
{
find: "#{intl::THREE_USERS_TYPING}",
find: "#{intl::SEVERAL_USERS_TYPING_STRONG}",
group: true,
replacement: [
{