mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 16:28:16 +00:00
fix BetterFolders, SpotifyControls, GameActivityToggle
This commit is contained in:
parent
12da7a08fb
commit
c6e0ef1a11
6 changed files with 4 additions and 20 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 ",
|
||||
|
|
|
|||
|
|
@ -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]),"
|
||||
|
|
|
|||
|
|
@ -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:)/,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue