From 219695393c263608c14eb97cad74e386fcb09756 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 6 Dec 2025 00:55:15 -0500 Subject: [PATCH] QuestCompleter: Take 3? --- .../questCompleter.discordDesktop/index.tsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/equicordplugins/questCompleter.discordDesktop/index.tsx b/src/equicordplugins/questCompleter.discordDesktop/index.tsx index 9ddcd2de9..ee675aba6 100644 --- a/src/equicordplugins/questCompleter.discordDesktop/index.tsx +++ b/src/equicordplugins/questCompleter.discordDesktop/index.tsx @@ -225,18 +225,19 @@ export default definePlugin({ patches: [ { find: ".platformSelectorPrimary,", - replacement: [ - { - match: /(?<=fullWidth:!0}\)}\):.{0,200}?secondary",)disabled:!0/, - replace: "onClick:()=>$self.mobileQuestPatch(arguments[0]?.quest?.id)", - predicate: () => !isPluginEnabled(questify.name), - }, - { - match: /(?<=fullWidth:!0}\)}\):.{0,200}?secondary",.{0,150}fullWidth:!0)/, - replace: ",onClick:()=>$self.mobileQuestPatch(arguments[0]?.quest?.id)", - predicate: () => isPluginEnabled(questify.name), - }, - ], + predicate: () => !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) {