2025-04-04 22:54:27 +02:00
|
|
|
/*
|
|
|
|
|
* Vencord, a Discord client mod
|
|
|
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { Devs } from "@utils/constants";
|
|
|
|
|
import definePlugin from "@utils/types";
|
|
|
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
|
name: "DisableDeepLinks",
|
2025-04-08 00:49:05 +02:00
|
|
|
description: "Disables Discord's stupid deep linking feature which tries to force you to use their Desktop App",
|
2025-04-04 22:54:27 +02:00
|
|
|
authors: [Devs.Ven],
|
|
|
|
|
required: true,
|
|
|
|
|
|
2025-04-08 00:49:05 +02:00
|
|
|
noop: () => { },
|
|
|
|
|
|
2025-04-04 22:54:27 +02:00
|
|
|
patches: [{
|
2025-04-08 00:49:05 +02:00
|
|
|
find: /\.openNativeAppModal\(.{0,50}?\.DEEP_LINK/,
|
2025-04-04 22:54:27 +02:00
|
|
|
replacement: {
|
2025-04-08 00:49:05 +02:00
|
|
|
match: /\i\.\i\.openNativeAppModal/,
|
|
|
|
|
replace: "$self.noop",
|
2025-04-04 22:54:27 +02:00
|
|
|
}
|
|
|
|
|
}]
|
|
|
|
|
});
|