From 5825c01ed1fd5e54ae7f5f8be920c975f34f3c25 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 6 Dec 2025 01:00:56 -0500 Subject: [PATCH] QuestCompleter: Drop Mobile Quest Support --- .../questCompleter.discordDesktop/index.tsx | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/equicordplugins/questCompleter.discordDesktop/index.tsx b/src/equicordplugins/questCompleter.discordDesktop/index.tsx index ee675aba6..fc76d698a 100644 --- a/src/equicordplugins/questCompleter.discordDesktop/index.tsx +++ b/src/equicordplugins/questCompleter.discordDesktop/index.tsx @@ -20,9 +20,7 @@ import "./style.css"; import { HeaderBarButton } from "@api/HeaderBar"; import { showNotification } from "@api/Notifications"; -import { isPluginEnabled } from "@api/PluginManager"; import { definePluginSettings } from "@api/Settings"; -import questify from "@equicordplugins/questify"; import { Devs } from "@utils/constants"; import { getTheme, Theme } from "@utils/discord"; import definePlugin, { OptionType } from "@utils/types"; @@ -34,8 +32,6 @@ const ApplicationStreamingStore = findStoreLazy("ApplicationStreamingStore"); const RunningGameStore = findStoreLazy("RunningGameStore"); const QuestsStore = findByPropsLazy("getQuest"); -let questIdCheck = 0; - function ToolBarHeader() { return ( !isPluginEnabled(questify.name), - replacement: { - match: /(?<=fullWidth:!0}\)}\):.{0,200}?secondary",)disabled:!0/, - replace: "onClick:()=>$self.mobileQuestPatch(arguments[0]?.quest?.id)" - }, - }, - { - find: ".platformSelectorPrimary,", - predicate: () => isPluginEnabled(questify.name), - replacement: { - match: /(?<=fullWidth:!0}\)}\):.{0,200}?secondary",.{0,150}fullWidth:!0)/, - replace: ",onClick:()=>$self.mobileQuestPatch(arguments[0]?.quest?.id)" - }, - }, - ], - mobileQuestPatch(questId) { - if (questId === questIdCheck) return; - questIdCheck = questId; - Vencord.Webpack.Common.RestAPI.post({ - url: `/quests/${questId}/enroll`, - body: { - location: 11 - } - }); - }, headerBarButton: { icon: QuestIcon, render: ToolBarHeader