Questify: Horror fixes. (#1012)
This commit is contained in:
parent
c94ae02d6e
commit
995d8831fd
2 changed files with 16 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue