diff --git a/src/plugins/alwaysAnimate/index.ts b/src/plugins/alwaysAnimate/index.ts index 4fc43f2cd..2052998ad 100644 --- a/src/plugins/alwaysAnimate/index.ts +++ b/src/plugins/alwaysAnimate/index.ts @@ -80,7 +80,7 @@ export default definePlugin({ }, { // Guild Banner - find: '"data-banner-visible":', + find: "#{intl::DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO}", predicate: () => settings.store.serverBanners, replacement: { match: /(guildBanner:\i,animate:)\i(?=}\):null)/, diff --git a/src/plugins/anonymiseFileNames/index.tsx b/src/plugins/anonymiseFileNames/index.tsx index 8e965a12e..389b164c2 100644 --- a/src/plugins/anonymiseFileNames/index.tsx +++ b/src/plugins/anonymiseFileNames/index.tsx @@ -26,7 +26,7 @@ import { CloudUpload } from "@vencord/discord-types"; import { findByCodeLazy } from "@webpack"; import { useState } from "@webpack/common"; -const ActionBarIcon = findByCodeLazy(".actionBarIcon"); +const ActionBarIcon = findByCodeLazy(".actionBarIconaaaaaaaaaaa"); const enum Methods { Random, diff --git a/src/plugins/betterRoleDot/index.ts b/src/plugins/betterRoleDot/index.ts index f1b4834c3..3cdff9bb4 100644 --- a/src/plugins/betterRoleDot/index.ts +++ b/src/plugins/betterRoleDot/index.ts @@ -44,8 +44,8 @@ export default definePlugin({ patches: [ { - // class used in this module is dotBorderBase - find: "0H16C18.2091", + // Class used in this module is dotBorderBase + find: "M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z", replacement: { match: /,viewBox:"0 0 20 20"/, replace: "$&,onClick:()=>$self.copyToClipBoard(arguments[0].color),style:{cursor:'pointer'}", 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 d3fffbb20..b875c6416 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -192,7 +192,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/greetStickerPicker/index.tsx b/src/plugins/greetStickerPicker/index.tsx index d2911ff06..0604c54d8 100644 --- a/src/plugins/greetStickerPicker/index.tsx +++ b/src/plugins/greetStickerPicker/index.tsx @@ -160,7 +160,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 0e78148fc..6e710d54b 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -92,7 +92,7 @@ export default definePlugin({ }, // Slate { - // same find as FullUserInChatbox + // Same find as FullUserInChatbox find: ':"text":', replacement: [ { @@ -138,7 +138,7 @@ export default definePlugin({ { find: "MessageReactions.render:", replacement: { - match: /tag:"strong",variant:"text-md\/\w+"(?<=onContextMenu:.{0,15}\((\i),(\i),\i\).+?)/, + match: /tag:"strong",variant:"text-md\/medium"(?<=onContextMenu:.{0,15}\((\i),(\i),\i\).+?)/, replace: "$&,style:$self.getColorStyle($2?.id,$1?.channel?.id)" }, predicate: () => settings.store.reactorsList,