From 81e617a8b028f6841cbb2ca8e640fba31f767c66 Mon Sep 17 00:00:00 2001 From: eva Date: Thu, 12 Feb 2026 14:26:46 +0000 Subject: [PATCH] revert: "meta: disable script frontend for now" This reverts commit be28929c1efb012f759d9dbefdf834303bda15e5. --- src/routes/+page.svelte | 128 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 127 insertions(+), 1 deletion(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index f9901fb..a17bf81 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -17,7 +17,133 @@ amplitudes (for previous work)

-

this script doesn't work anymore and has been temporarily disabled while we're looking into a fix.

+

how to verify on discord

+

+ it doesn't matter if you are in the UK or similar region that + currently has access to this, this will verify your account for the future global rollout in + march aswell as current. to use, simply paste this script into your discord console by going to + discord.com/app, pressing F12, going to Console + and copying and pasting and hitting enter on the following script and solving the captcha that pops + up + (typing "allow pasting" before if necessary): +

+
+// add a chunk to extract webpack's moduleCache
+let webpackRequire = webpackChunkdiscord_app.push([[Symbol()],{},(r) => r]);
+// cleanup the chunk we added
+webpackChunkdiscord_app.pop();
+
+let modules = webpackRequire.m;
+let cache = webpackRequire.c;
+
+// https://github.com/moonlight-mod/moonlight/blob/main/packages/core-extensions/src/spacepack/webpackModules/spacepack.ts
+// helper to find a webpack module via code snippet
+function findByCode(src) {
+  for (const [id, mod] of Object.entries(modules)) {
+    if (mod.toString().includes(src)) {
+      return cache[id].exports;
+    }
+  }
+}
+
+// helper to find an object by its key
+function findObjectFromKey(exports, key) {
+  if (!exports) return;
+  for (const exportKey in exports) {
+    const obj = exports[exportKey];
+    if (obj && obj[key]) return obj;
+  }
+}
+
+// https://github.com/moonlight-mod/moonlight/blob/main/packages/mappings/src/mappings/discord/utils/HTTPUtils.ts
+// find the discord api client
+const api = findObjectFromKey(
+  findByCode('.set("X-Audit-Log-Reason",'),
+  "patch",
+);
+
+// send a api request to discord /age-verification/verify and then redirect the page to our website
+const request = await api.post({
+  url: "/age-verification/verify",
+  body: { method: 3 },
+});
+const verificationUrl = request.body.verification_webview_url;
+window.location.href = `https://age-verifier.kibty.town/webview?url=${encodeURIComponent(verificationUrl)}`;
+

+ (feel free to read the code, we made it readable and we have nothing to hide) +

+

+ it should navigate to a link (or give you a link to navigate to), from there, you can just wait until the page says success +

+

congrats! your discord account is now age verified.

+ +

+ how to verify on other platforms (twitch, kick, snapchat, ...others) +

+

+ navigate to the age verification page and choose selfie, from there, get the url of the qr code + and put it in this input box, and press verify +

+ +
+ + +
+ {#if qrCodeSuccess} +

+ your account has successfully been verified. go back to the site tab to continue +

+ {:else if qrCodeError} +

+ {qrCodeError} +

+ {/if}

how does this work