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 } ] });