From 6bcf5a773770d9ab95ffb687bdd07406e22104c3 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 23 Jan 2026 17:33:45 -0500 Subject: [PATCH] finish hopefully --- src/components/Notice.tsx | 2 +- .../components.dev/components/index.tsx | 12 ++++++------ src/equicordplugins/homeTyping/index.tsx | 2 +- src/equicordplugins/questify/utils/components.tsx | 4 ++-- src/equicordplugins/remix/index.tsx | 2 +- src/equicordplugins/statusPresets/index.tsx | 2 +- src/equicordplugins/unreadBadgeCount/index.tsx | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/Notice.tsx b/src/components/Notice.tsx index e03a068dd..47c3ecc06 100644 --- a/src/components/Notice.tsx +++ b/src/components/Notice.tsx @@ -18,7 +18,7 @@ export const NoticeTypes: Record<"WARNING" | "INFO" | "ERROR" | "POSITIVE" | "PR }; const { HelpMessage } = mapMangledModuleLazy('POSITIVE="positive"', { - HelpMessage: filters.byCode(".iconDiv") + HelpMessage: filters.byClassNames("iconDiv") }); export interface NoticeProps { diff --git a/src/equicordplugins/components.dev/components/index.tsx b/src/equicordplugins/components.dev/components/index.tsx index 0bc0dfcc9..d4f7c82b0 100644 --- a/src/equicordplugins/components.dev/components/index.tsx +++ b/src/equicordplugins/components.dev/components/index.tsx @@ -116,7 +116,7 @@ export { useState, }; -export const Anchor = findComponentByCodeLazy("anchorUnderlineOnHover", "useDefaultUnderlineStyles") as React.ComponentType; +export const Anchor = findComponentByCodeLazy("getDefaultLinkInterceptor", "useDefaultUnderlineStyles") as React.ComponentType; export const Clickable = findByCodeLazy("ignoreKeyPress", "renderNonInteractive") as React.ComponentType; export const ManaButton = findComponentByCodeLazy('"data-mana-component":"button"') as React.ComponentType; @@ -143,12 +143,12 @@ export const ProgressBar = findComponentByCodeLazy("progressContainer", "labelle export const Spinner = findComponentByCodeLazy("spinningCircleSimple", "pulsingEllipsis", "wanderingCubes") as unknown as SpinnerComponent; export const SearchBar = findComponentByCodeLazy("#{intl::SEARCH}", "clearable", "autoComplete") as React.ComponentType; export const Paginator = findComponentByCodeLazy("#{intl::BACK}", "#{intl::NEXT}", "renderPageWrapper") as React.ComponentType; -export const Notice = findComponentByCodeLazy("messageType", "iconDiv", "actionContainer") as React.ComponentType; +export const Notice = findComponentByCodeLazy("messageType", '="text-default"', '="text-sm/medium"') as React.ComponentType; export const Chip = findComponentByCodeLazy('variant:"eyebrow"', "chip,") as React.ComponentType; export const Skeleton = findComponentByCodeLazy("withHeader:t=!0,size:") as React.ComponentType; -export const Accordion = findComponentByCodeLazy("accordionContainer", "onExpandedChange", "defaultExpanded") as React.ComponentType; +export const Accordion = findComponentByCodeLazy("scrollHeight)}", "onExpandedChange", "defaultExpanded") as React.ComponentType; export const Timestamp = findComponentByCodeLazy("#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}", "isVisibleOnlyOnHover") as React.ComponentType; -export const GuildIcon = findComponentByCodeLazy("Masks.CLAN_ICON", "guildIconImage") as React.ComponentType; +export const GuildIcon = findComponentByCodeLazy("Masks.CLAN_ICON,width", "acronymClassName") as React.ComponentType; export const ColorPicker = findComponentByCodeLazy("#{intl::USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR}", "showEyeDropper") as React.ComponentType; export const Popout: PopoutComponent = proxyLazy(() => findLazy(m => m?.y?.Animation && m.y.toString?.().includes("renderPopout")).y); export const FocusLock = findComponentByCodeLazy(".containerRef,{keyboardModeEnabled:") as React.ComponentType; @@ -199,7 +199,7 @@ export const CustomColorButton: React.ComponentType = pr const BadgeModule = findLazy(m => { const values = Object.values(m); return values.length < 15 && - values.some(v => typeof v === "function" && v.toString?.().includes("numberBadge")) && + values.some(v => typeof v === "function" && v.toString?.().includes("BADGE_NOTIFICATION_BACKGROUND")) && values.some(v => typeof v === "object" && (v as BadgeShapesType)?.ROUND && (v as BadgeShapesType)?.ROUND_LEFT); }); @@ -311,7 +311,7 @@ waitFor(m => m.name === "MenuCheckboxItem", (_, id) => { }); waitFor(filters.componentByCode('path:["empty"]'), m => { MenuComponents.Menu = m; }); -waitFor(filters.componentByCode("sliderContainer", "slider", "handleSize:16", "=100"), m => { MenuComponents.MenuSliderControl = m; }); +waitFor(filters.componentByCode("SLIDER)", "handleSize:16"), m => { MenuComponents.MenuSliderControl = m; }); waitFor(filters.componentByCode(".SEARCH)", ".focus()", "query:"), m => { MenuComponents.MenuSearchControl = m; }); waitFor(m => m.name === "MenuCheckboxItem", (_, id) => { diff --git a/src/equicordplugins/homeTyping/index.tsx b/src/equicordplugins/homeTyping/index.tsx index 2406ff806..a52bc2957 100644 --- a/src/equicordplugins/homeTyping/index.tsx +++ b/src/equicordplugins/homeTyping/index.tsx @@ -9,7 +9,7 @@ import definePlugin from "@utils/types"; import { findComponentByCodeLazy, findStoreLazy } from "@webpack"; import { TypingStore, UserStore, useStateFromStores } from "@webpack/common"; -const ThreeDots = findComponentByCodeLazy(".dots,", "dotRadius:"); +const ThreeDots = findComponentByCodeLazy("Math.min(1,Math.max(", "dotRadius:"); const PrivateChannelSortStore = findStoreLazy("PrivateChannelSortStore") as { getPrivateChannelIds: () => string[]; }; diff --git a/src/equicordplugins/questify/utils/components.tsx b/src/equicordplugins/questify/utils/components.tsx index 76fa8a594..a39a727ea 100644 --- a/src/equicordplugins/questify/utils/components.tsx +++ b/src/equicordplugins/questify/utils/components.tsx @@ -14,8 +14,8 @@ import { formatLowerBadge } from "./misc"; // GuildlessServerListItem's built-in pill does not support unread state. export const GuildlessServerListItemComponent = findComponentByCodeLazy("tooltip:", "lowerBadgeSize:"); export const GuildedServerListItemPillComponent = findComponentByCodeLazy('"pill":"empty"'); -export const ServerListItemLowerBadgeComponent = findComponentByCodeLazy("GUILD_EVENT)}),["); -export const ServerListItemUpperBadgeComponent = findComponentByCodeLazy("iconBadge", ".ROUND,disableColor"); +export const ServerListItemLowerBadgeComponent = findComponentByCodeLazy("BADGE_NOTIFICATION_BACKGROUND", '"renderBadgeCount"'); +export const ServerListItemUpperBadgeComponent = findComponentByCodeLazy("{icon:", ".ROUND,disableColor"); export const RadioGroup = findComponentByCodeLazy(',["label","description"'); export const QuestTile = findComponentByCodeLazy(".rowIndex,trackGuildAndChannelMetadata"); diff --git a/src/equicordplugins/remix/index.tsx b/src/equicordplugins/remix/index.tsx index 8af6b3441..38fd5ca06 100644 --- a/src/equicordplugins/remix/index.tsx +++ b/src/equicordplugins/remix/index.tsx @@ -16,7 +16,7 @@ import { ChannelStore, DraftType, FluxDispatcher, Menu, SelectedChannelStore, Up import RemixModal from "./RemixModal"; import css from "./styles.css?managed"; -const requireCreateStickerModal = extractAndLoadChunksLazy(["stickerInspected]:"]); +const requireCreateStickerModal = extractAndLoadChunksLazy([".CREATE_STICKER_MODAL,", "isDisplayingIndividualStickers"]); const requireSettingsMenu = extractAndLoadChunksLazy(['name:"UserSettings"'], /createPromise:.{0,20}(\i\.\i\("?.+?"?\).*?).then\(\i\.bind\(\i,"?(.+?)"?\)\).{0,50}"UserSettings"/); const PendingReplyStore = findStoreLazy("PendingReplyStore"); diff --git a/src/equicordplugins/statusPresets/index.tsx b/src/equicordplugins/statusPresets/index.tsx index 9fabe3b1b..5ba18ea2d 100644 --- a/src/equicordplugins/statusPresets/index.tsx +++ b/src/equicordplugins/statusPresets/index.tsx @@ -58,7 +58,7 @@ interface DiscordStatus { const StatusStyles = findCssClassesLazy("statusItem", "status", "menuDivider", "clearCustomStatusHint", "customEmojiPlaceholder"); // TODO: find clearCustomStatusHint original css/svg or replace -const PMenu = findComponentByCodeLazy(".menuItemLabel", ".menuItemInner"); +const PMenu = findComponentByCodeLazy("#{intl::MORE_OPTIONS}", ".ChevronSmallRightIcon"); const EmojiComponent = findComponentByCodeLazy(/\.translateSurrogatesToInlineEmoji\(\i\.name\);/); const CustomStatusSettings = getUserSettingLazy("status", "customStatus")!; diff --git a/src/equicordplugins/unreadBadgeCount/index.tsx b/src/equicordplugins/unreadBadgeCount/index.tsx index 00bce0076..0ebc25bfd 100644 --- a/src/equicordplugins/unreadBadgeCount/index.tsx +++ b/src/equicordplugins/unreadBadgeCount/index.tsx @@ -14,7 +14,7 @@ import { ReadStateStore, useStateFromStores } from "@webpack/common"; const UserGuildSettingsStore = findStoreLazy("UserGuildSettingsStore"); const JoinedThreadsStore = findStoreLazy("JoinedThreadsStore"); -const NumberBadge = findComponentByCodeLazy("GUILD_EVENT)}),["); +const NumberBadge = findComponentByCodeLazy("BADGE_NOTIFICATION_BACKGROUND", '"renderBadgeCount"'); const settings = definePluginSettings({ showOnMutedChannels: {