diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index 6078eedc1..c0c644506 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -1398,6 +1398,14 @@ export default definePlugin({ useQuestRerender, patches: [ + { + // Needed for GuildlessServerListItemComponent component in components.tsx + find: "=\"DOWNLOAD_APPS\";function", + replacement: { + match: /(?<=function\(\i,\i,\i\){\i.\i\(\i,{)(?=.{0,25000}?ariaHidden:!0,asContainer:!\i,children:\i}\)}var \i=\i\(\d+\);let (\i)=\i.forwardRef\(function)/, + replace: "GuildlessServerListItemComponent:()=>$1," + } + }, { // Hides Quests tab in the Discovery page. find: "GLOBAL_DISCOVERY_SIDEBAR},", @@ -1649,8 +1657,13 @@ export default definePlugin({ }, { // Encourages banners to load quicker if the setting is enabled. - match: /(warningHints:\i,)isVisibleInViewport:(\i)/, - replace: "$1isVisibleInViewport:$self.shouldPreloadQuestAssets()?true:$2" + match: /(hideAssets:)(!\i)/, + replace: "$1$self.shouldPreloadQuestAssets()?!1:$2" + }, + { + // Encourages banners to load quicker if the setting is enabled. + match: /(showPlaceholder:)(!\i)/, + replace: "$1$self.shouldPreloadQuestAssets()?!1:$2" }, { // Encourages reward icons to load quicker if the setting is enabled. diff --git a/src/equicordplugins/questify/utils/components.tsx b/src/equicordplugins/questify/utils/components.tsx index 1a9300d97..832ff862c 100644 --- a/src/equicordplugins/questify/utils/components.tsx +++ b/src/equicordplugins/questify/utils/components.tsx @@ -12,6 +12,7 @@ import { JSX } from "react"; import { settings } from "../settings"; import { formatLowerBadge } from "./misc"; +// Requires GuildlessServerListItemComponent export patch in index.tsx // GuildlessServerListItem's built-in pill does not support unread state. export const GuildlessServerListItemComponent = findComponentByCodeLazy("tooltip:", "lowerBadgeSize:"); export const GuildedServerListItemPillComponent = findComponentByCodeLazy('"pill":"empty"');