From 08f757a9119e8997f035ebb8c127dbe8a1469b6a Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 12 May 2025 11:15:59 -0400 Subject: [PATCH] Revert NoDeepLinks --- src/plugins/noDeepLinks.web/index.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/plugins/noDeepLinks.web/index.ts b/src/plugins/noDeepLinks.web/index.ts index e1ccb944..019df659 100644 --- a/src/plugins/noDeepLinks.web/index.ts +++ b/src/plugins/noDeepLinks.web/index.ts @@ -4,19 +4,16 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { Devs, EquicordDevs } from "@utils/constants"; +import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; export default definePlugin({ name: "DisableDeepLinks", description: "Disables Discord's stupid deep linking feature which tries to force you to use their Desktop App", - authors: [Devs.Ven, EquicordDevs.Cootshk], + authors: [Devs.Ven], required: true, noop: () => { }, - acceptInvite: () => { - open(document.location.href.replace(/invite/, "app/invite-with-guild-onboarding"), "_self"); - }, patches: [ { @@ -25,14 +22,6 @@ export default definePlugin({ match: /\i\.\i\.openNativeAppModal/, replace: "$self.noop", } - }, - { // This says that it has no effect, but it does - find: /openApp\(/, - replacement: { - match: /\i\.\i\.launch\(\i,\i=>\{\i\.\i\.dispatch\(\i\?\{.*?\}:\{.*?\}\)\}\)/, - replace: "$self.acceptInvite()", - }, - all: true } ] });