diff --git a/src/plugins/always-trust/index.ts b/src/plugins/always-trust/index.ts new file mode 100644 index 0000000..05f926d --- /dev/null +++ b/src/plugins/always-trust/index.ts @@ -0,0 +1,23 @@ +import { definePlugin } from "#plugin-context"; +import { byStoreName } from "@metro/common/stores"; + +export default definePlugin({ + name: "AlwaysTrust", + description: "Prevents Discord's trust website confirmations", + authors: [ + { + "name": "cocobo1", + "id": 767650984175992833n + }, + ], + + patches: [ + { + id: "MaskedLinkStore", + target: byStoreName("MaskedLinkStore"), + patch(module, patcher) { + patcher.instead(module, "isTrustedDomain", () => true); + }, + }, + ], +});