From 04962b01f5d5c6c566b32e74df1bca25e12994f7 Mon Sep 17 00:00:00 2001 From: "Win8.1VMUser" <78744628+Win81VMUser@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:47:06 +0200 Subject: [PATCH] Update index.ts --- plugins/nsfwbypass/src/index.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/nsfwbypass/src/index.ts b/plugins/nsfwbypass/src/index.ts index a7524de..6c4fcbe 100644 --- a/plugins/nsfwbypass/src/index.ts +++ b/plugins/nsfwbypass/src/index.ts @@ -38,19 +38,22 @@ export default { storage.nsfwBypass ??= true; storage.showWarningPopup ??= true; - // NSFW bypass patches - only if enabled + // NSFW bypass patches - only if enabled (using exact working code) if (storage.nsfwBypass) { patches.push(instead("handleNSFWGuildInvite", NSFWStuff, () => false)); patches.push(instead("isNSFWInvite", NSFWStuff, () => false)); patches.push(instead("shouldNSFWGateGuild", NSFWStuff, () => false)); - } - - // Age verification bypass - only if enabled - if (storage.ageBypass) { patches.push(after("getCurrentUser", UserStore, (_, user) => { if (user?.hasOwnProperty("nsfwAllowed")) { user.nsfwAllowed = true; } + return user; + })); + } + + // Age verification bypass - only if enabled (separate feature) + if (storage.ageBypass) { + patches.push(after("getCurrentUser", UserStore, (_, user) => { if (user?.hasOwnProperty("ageVerificationStatus")) { user.ageVerificationStatus = 3; // VERIFIED_ADULT }