// ==UserScript== // @name Discord Button Unlocker (No Autocomplete) // @namespace http://tampermonkey.net/ // @version 1.2 // @description Adds a code prompt to unlock custom buttons (example only) with no autocomplete. // @author You // @match https://discord.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Add a custom overlay for the code input const overlay = document.createElement('div'); overlay.style.position = 'fixed'; overlay.style.top = '0'; overlay.style.left = '0'; overlay.style.width = '100%'; overlay.style.height = '100%'; overlay.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; overlay.style.zIndex = '10000'; overlay.style.display = 'flex'; overlay.style.flexDirection = 'column'; overlay.style.justifyContent = 'center'; overlay.style.alignItems = 'center'; overlay.innerHTML = `

Anti Spy Defense by RJ

`; document.body.appendChild(overlay); // Correct code for unlocking const correctCode = "cooperisadog123"; // Event listener for the submit button document.getElementById('submitCode').addEventListener('click', () => { const userInput = document.getElementById('unlockCode').value; if (userInput === correctCode) { // Remove the overlay overlay.remove(); // Unlock Discord buttons unlockButtons(); alert('wazzup my boii'); } else { alert('GET OUT'); } }); // Function to unlock Discord buttons function unlockButtons() { // Select all buttons in Discord const buttons = document.querySelectorAll('button'); buttons.forEach(button => { button.disabled = false; // Enable buttons }); } // Monitor Discord's dynamic button rendering const observer = new MutationObserver(() => { if (overlay.parentNode === null) { unlockButtons(); // Unlock buttons only if overlay is removed } }); observer.observe(document.body, { childList: true, subtree: true }); })();