From e25c5db2ab96a62779892ea9560ccfbe9f9d1f96 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 23 Jan 2026 18:25:09 -0300 Subject: [PATCH] boom 2 --- src/plugins/alwaysAnimate/index.ts | 2 +- src/plugins/copyFileContents/index.tsx | 2 +- src/plugins/fakeNitro/index.tsx | 2 +- src/plugins/fullUserInChatbox/index.tsx | 2 +- src/plugins/gameActivityToggle/index.tsx | 6 +++--- src/plugins/greetStickerPicker/index.tsx | 2 +- src/plugins/roleColorEverywhere/index.tsx | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/plugins/alwaysAnimate/index.ts b/src/plugins/alwaysAnimate/index.ts index 3b3e552e2..8a057c981 100644 --- a/src/plugins/alwaysAnimate/index.ts +++ b/src/plugins/alwaysAnimate/index.ts @@ -49,7 +49,7 @@ export default definePlugin({ }, { // Guild Banner - find: '"data-banner-visible":', + find: "#{intl::DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO}", replacement: { match: /(guildBanner:\i,animate:)\i(?=}\):null)/, replace: "$1!0" diff --git a/src/plugins/copyFileContents/index.tsx b/src/plugins/copyFileContents/index.tsx index 15c0ac7e8..673a204d0 100644 --- a/src/plugins/copyFileContents/index.tsx +++ b/src/plugins/copyFileContents/index.tsx @@ -27,7 +27,7 @@ export default definePlugin({ { find: "#{intl::PREVIEW_BYTES_LEFT}", replacement: { - match: /(?<=fileContents:(\i),bytesLeft:(\i).+?)url:\i,fileName:\i,fileSize:\i}\),(?=.{0,25}setLanguage:)/g, + match: /url:\i,fileName:\i,fileSize:\i}\),(?=.{0,25}setLanguage:)(?<=fileContents:(\i),bytesLeft:(\i).+?)/g, replace: "$&$self.addCopyButton({fileContents:$1,bytesLeft:$2})," } } diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index 4a943e118..7ec2641e3 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -186,7 +186,7 @@ export default definePlugin({ find: '.getByName("fork_and_knife")', predicate: () => settings.store.enableEmojiBypass, replacement: { - match: ".CHAT", + match: /\.CHAT/, replace: ".STATUS" } }, diff --git a/src/plugins/fullUserInChatbox/index.tsx b/src/plugins/fullUserInChatbox/index.tsx index 70eca888b..a9d4d61d9 100644 --- a/src/plugins/fullUserInChatbox/index.tsx +++ b/src/plugins/fullUserInChatbox/index.tsx @@ -27,7 +27,7 @@ export default definePlugin({ patches: [ { - // same find as RoleColorEverywhere chatbox mentions + // Same find as RoleColorEverywhere chatbox mentions find: ':"text":', replacement: { match: /(hidePersonalInformation\).+?)(if\(null!=\i\){.+?return \i)(?=})/, diff --git a/src/plugins/gameActivityToggle/index.tsx b/src/plugins/gameActivityToggle/index.tsx index 7504b7cec..832a59fc7 100644 --- a/src/plugins/gameActivityToggle/index.tsx +++ b/src/plugins/gameActivityToggle/index.tsx @@ -28,7 +28,7 @@ import { Menu } from "@webpack/common"; import managedStyle from "./style.css?managed"; -const Button = findComponentByCodeLazy(".GREEN,positionKeyStemOverride"); +const Button = findComponentByCodeLazy(".GREEN,positionKeyStemOverride:"); const ShowCurrentGame = getUserSettingLazy("status", "showCurrentGame")!; @@ -114,8 +114,8 @@ export default definePlugin({ { find: "#{intl::ACCOUNT_SPEAKING_WHILE_MUTED}", replacement: { - match: /className:\i\.\i,.{0,50}children:\[(?=.{0,25}accountContainerRef)/, - replace: "$&$self.GameActivityToggleButton(arguments[0])," + match: /children:\[(?=.{0,25}?accountContainerRef)/, + replace: "children:[$self.GameActivityToggleButton(arguments[0])," } } ], diff --git a/src/plugins/greetStickerPicker/index.tsx b/src/plugins/greetStickerPicker/index.tsx index 734b426c6..db20bd3dd 100644 --- a/src/plugins/greetStickerPicker/index.tsx +++ b/src/plugins/greetStickerPicker/index.tsx @@ -161,7 +161,7 @@ export default definePlugin({ { find: "#{intl::WELCOME_CTA_LABEL}", replacement: { - match: /(?<={channel:\i,message:\i}=(\i).+?)className:\i\.\i,(?=.{0,40}"sticker")/, + match: /className:\i\.\i,(?=.{0,40}?"sticker")(?<={channel:\i,message:\i}=(\i).+?)/, replace: "$&onContextMenu:(vcEvent)=>$self.pickSticker(vcEvent, $1)," } } diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index e97545197..0ef3644e8 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -91,7 +91,7 @@ export default definePlugin({ }, // Slate { - // same find as FullUserInChatbox + // Same find as FullUserInChatbox find: ':"text":', replacement: [ {