fix BetterFolders, SpotifyControls, GameActivityToggle

This commit is contained in:
thororen1234 2026-03-04 21:06:54 -05:00 • committed by Vendicated
parent 12da7a08fb
commit c6e0ef1a11
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
6 changed files with 4 additions and 20 deletions

View file

@ -134,14 +134,6 @@ export default definePlugin({
} }
] ]
}, },
{
find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}",
replacement: {
// Skip the check Discord performs to make sure the section being selected in the user settings context menu is valid
match: /null!=\(\i=Object.values\(\i\.\i\).{0,50}?&&(?=\(0,\i\.openUserSettings\)\(\i,\{section:\i)/,
replace: ""
}
},
{ {
find: ".buildLayout().map", find: ".buildLayout().map",
replacement: { replacement: {

View file

@ -149,7 +149,7 @@ export default definePlugin({
// Create the isBetterFolders and betterFoldersExpandedIds variables in the GuildsBar component // Create the isBetterFolders and betterFoldersExpandedIds variables in the GuildsBar component
// Needed because we access this from a non-arrow closure so we can't use arguments[0] // Needed because we access this from a non-arrow closure so we can't use arguments[0]
{ {
match: /let{disableAppDownload:\i=\i\.isPlatformEmbedded,isOverlay:.+?(?=}=\i,)/, match: /let{disableAppDownload:\i=\i\.isPlatformEmbedded,isOverlay:.+?(?=}=\i)/,
replace: "$&,isBetterFolders,betterFoldersExpandedIds" replace: "$&,isBetterFolders,betterFoldersExpandedIds"
}, },
// Export the isBetterFolders and betterFoldersExpandedIds variable to the Guild List component // Export the isBetterFolders and betterFoldersExpandedIds variable to the Guild List component

View file

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

View file

@ -96,14 +96,6 @@ export default definePlugin({
replace: (_, rest) => `${rest}onClick:()=>{}` replace: (_, rest) => `${rest}onClick:()=>{}`
} }
}, },
// Make the Favourites Server experiment allow favouriting DMs and threads
{
find: "useCanFavoriteChannel",
replacement: {
match: /(?<=isFavorite\(\i\.id\).{0,5})\i\.isThread\(\)/,
replace: "false",
}
},
// Enable experiment embed on sent experiment links // Enable experiment embed on sent experiment links
{ {
find: "Clear Treatment ", find: "Clear Treatment ",

View file

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

View file

@ -53,7 +53,7 @@ export default definePlugin({
}, },
patches: [ patches: [
{ {
find: ".WIDGETS_RTC_UPSELL_COACHMARK),", find: ".DISPLAY_NAME_STYLES_COACHMARK),",
replacement: { replacement: {
// react.jsx)(AccountPanel, { ..., showTaglessAccountPanel: blah }) // react.jsx)(AccountPanel, { ..., showTaglessAccountPanel: blah })
match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,occluded:)/, match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,occluded:)/,