From 0983a038f1aa81232f61c5034201dcba51e57724 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 27 Mar 2024 10:29:58 -0300 Subject: [PATCH] Fix broken patches --- src/plugins/_api/chatButtons.ts | 6 +++--- src/plugins/_api/memberListDecorators.ts | 2 +- src/plugins/webContextMenus.web/index.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/_api/chatButtons.ts b/src/plugins/_api/chatButtons.ts index ca85964c..9e2c6bf0 100644 --- a/src/plugins/_api/chatButtons.ts +++ b/src/plugins/_api/chatButtons.ts @@ -13,10 +13,10 @@ export default definePlugin({ authors: [Devs.Ven], patches: [{ - find: 'location:"ChannelTextAreaButtons"', + find: '"gift")),(null', replacement: { - match: /if\(!\i\.isMobile\)\{(?=.+?&&(\i)\.push\(.{0,50}"gift")/, - replace: "$&Vencord.Api.ChatButtons._injectButtons($1,arguments[0]);" + match: /!\i\.isMobile&&(?=\(\i\.isDM.+?&&(\i)\.push\(.{0,50}"gift")/, + replace: "$&(Vencord.Api.ChatButtons._injectButtons($1,arguments[0]),!0)&&" } }] }); diff --git a/src/plugins/_api/memberListDecorators.ts b/src/plugins/_api/memberListDecorators.ts index 1251c357..5e3e5ed1 100644 --- a/src/plugins/_api/memberListDecorators.ts +++ b/src/plugins/_api/memberListDecorators.ts @@ -31,7 +31,7 @@ export default definePlugin({ match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/, replace: "$&vencordProps=$1," }, { - match: /decorators:.{0,100}?children:\[/, + match: /\.Messages\.GUILD_OWNER(?=.+?decorators:(\i)\(\)).+?\1=?\(\)=>.+?children:\[/, replace: "$&...(typeof vencordProps=='undefined'?[]:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps))," } ] diff --git a/src/plugins/webContextMenus.web/index.ts b/src/plugins/webContextMenus.web/index.ts index faa24078..ac468903 100644 --- a/src/plugins/webContextMenus.web/index.ts +++ b/src/plugins/webContextMenus.web/index.ts @@ -195,7 +195,7 @@ export default definePlugin({ // Add back "Show My Camera" context menu { - find: '.default("MediaEngineWebRTC");', + find: '"MediaEngineWebRTC");', replacement: { match: /supports\(\i\)\{switch\(\i\)\{case (\i).Features/, replace: "$&.DISABLE_VIDEO:return true;case $1.Features"