Created
July 26, 2025 13:21
-
-
Save biast12/a815b7abe4cdbcb7023c0492f65e1bfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Discord Age Verification Bypass | |
| // @version 1.0 | |
| // @description Sets ageVerificationStatus to 3 in Discord client, with retry handling | |
| // @author Biast12 | |
| // @match https://*discord.com/* | |
| // @license MIT | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const retryInterval = 1000; // retry every 1 second | |
| const maxRetries = 20; | |
| let attemptCount = 0; | |
| const tryModify = () => { | |
| attemptCount++; | |
| try { | |
| const webpackRequire = typeof webpackChunkdiscord_app?.push === "function" | |
| ? webpackChunkdiscord_app.push([[Symbol()], {}, r => r]) | |
| : null; | |
| if (!webpackRequire || typeof webpackRequire !== 'function') { | |
| console.warn(`webpackRequire not found on attempt ${attemptCount}`); | |
| if (attemptCount < maxRetries) setTimeout(tryModify, retryInterval); | |
| return; | |
| } | |
| const moduleCache = webpackRequire.c; | |
| const userModule = Object.values(moduleCache).find(x => | |
| x?.exports?.default?.__proto__?.getCurrentUser | |
| ); | |
| if (!userModule) { | |
| console.warn(`getCurrentUser module not found on attempt ${attemptCount}`); | |
| if (attemptCount < maxRetries) setTimeout(tryModify, retryInterval); | |
| return; | |
| } | |
| const currentUser = userModule.exports.default.getCurrentUser?.(); | |
| if (!currentUser) { | |
| console.warn(`currentUser is undefined on attempt ${attemptCount}`); | |
| if (attemptCount < maxRetries) setTimeout(tryModify, retryInterval); | |
| return; | |
| } | |
| currentUser.ageVerificationStatus = 3; | |
| console.log(`✅ ageVerificationStatus set to 3 on attempt ${attemptCount}`); | |
| } catch (err) { | |
| console.error(`❌ Error on attempt ${attemptCount}:`, err); | |
| if (attemptCount < maxRetries) setTimeout(tryModify, retryInterval); | |
| } | |
| }; | |
| // Start trying after 2 seconds | |
| setTimeout(tryModify, 2000); | |
| })(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discord Age Verification Bypass
Install a browser extension for managing user scripts (skip if you already have one):
Install The Script from this Github
If you wanna Support me on Paypal or Join my Patreon!
Note: I won't be using this script, so please send a message here if it stop's working