Skip to content

Instantly share code, notes, and snippets.

@biast12
Created July 26, 2025 13:21
Show Gist options
  • Select an option

  • Save biast12/a815b7abe4cdbcb7023c0492f65e1bfb to your computer and use it in GitHub Desktop.

Select an option

Save biast12/a815b7abe4cdbcb7023c0492f65e1bfb to your computer and use it in GitHub Desktop.
// ==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);
})();
@biast12
Copy link
Author

biast12 commented Jul 26, 2025

Discord Age Verification Bypass

  1. Install a browser extension for managing user scripts (skip if you already have one):

  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment