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",
replacement: {

View file

@ -149,7 +149,7 @@ export default definePlugin({
// 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]
{
match: /let{disableAppDownload:\i=\i\.isPlatformEmbedded,isOverlay:.+?(?=}=\i,)/,
match: /let{disableAppDownload:\i=\i\.isPlatformEmbedded,isOverlay:.+?(?=}=\i)/,
replace: "$&,isBetterFolders,betterFoldersExpandedIds"
},
// 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
{
find: ".WIDGETS_RTC_UPSELL_COACHMARK),",
find: ".DISPLAY_NAME_STYLES_COACHMARK),",
replacement: [
// Use Decor avatar decoration hook
{

View file

@ -96,14 +96,6 @@ export default definePlugin({
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
{
find: "Clear Treatment ",

View file

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

View file

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