From 95bd8c831c9ef5067dd9a1be548c682eb7bc5177 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 2 Apr 2025 03:40:35 +0200 Subject: [PATCH] NSFWGateBypass: bypass new UK/Australia gate Co-Authored-By: dotle31 --- src/plugins/nsfwGateBypass/index.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/plugins/nsfwGateBypass/index.ts b/src/plugins/nsfwGateBypass/index.ts index b6f0f3e86..e6f3ee401 100644 --- a/src/plugins/nsfwGateBypass/index.ts +++ b/src/plugins/nsfwGateBypass/index.ts @@ -1,6 +1,6 @@ /* * Vencord, a modification for Discord's desktop app - * Copyright (c) 2022 Vendicated and contributors + * Copyright (c) 2025 Vendicated and contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,10 +26,16 @@ export default definePlugin({ patches: [ { find: ".nsfwAllowed=null", - replacement: { - match: /(?<=\.nsfwAllowed=)null!==.+?(?=[,;])/, - replace: "!0", - }, - }, + replacement: [ + { + match: /(?<=\.nsfwAllowed=)null!==.+?(?=[,;])/, + replace: "true", + }, + { + match: /(?<=\.ageVerificationStatus=)null!==.+?(?=[,;])/, + replace: "3", // VERIFIED_ADULT + } + ], + } ], });