YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Discord Quest Background Autoclicker (Userscript)

I have created a powerful Userscript that runs directly in your browser. This is perfect for "Grass Toucher" or similar Discord games because it doesn't use your mouse cursor at all, allowing you to work in other tabs while it clicks for you.

How to Use

  1. Open your browser to the Discord Quest tab.
  2. Press F12 (or Right-Click -> Inspect) and click on the Console tab.
  3. Copy and paste the entire code below and press Enter.
  4. Follow the controls:
    • Press Enter: To START clicking (It will automatically find the smallest red dot/Adventure button).
    • Press Esc: To STOP clicking.

The Code

(function() {
    let clickInterval = null;
    let isRunning = false;

    // --- LOGIC TO FIND THE TARGET ---
    function findTarget() {
        // Method 1: Look for the smallest red element (The "Red Dot")
        let elements = document.querySelectorAll('*');
        let smallest = null;
        let minArea = Infinity;

        for (let el of elements) {
            let style = window.getComputedStyle(el);
            let bgColor = style.backgroundColor;
            let rect = el.getBoundingClientRect();
            
            // Check for red colors or class names
            const isRed = bgColor.match(/rgb\(25[0-5], [0-5]\d?, [0-5]\d?\)/);
            if (isRed || el.innerText === "Adventure") {
                let area = rect.width * rect.height;
                if (area > 0 && area < minArea) {
                    minArea = area;
                    smallest = el;
                }
            }
        }
        return smallest;
    }

    // --- CLICKING ACTION ---
    function performClick() {
        const target = findTarget();
        if (target) {
            // Simulate a real mouse click event
            const rect = target.getBoundingClientRect();
            const x = rect.left + rect.width / 2;
            const y = rect.top + rect.height / 2;
            
            target.dispatchEvent(new MouseEvent('mousedown', {bubbles: true, clientX: x, clientY: y}));
            target.dispatchEvent(new MouseEvent('mouseup', {bubbles: true, clientX: x, clientY: y}));
            target.dispatchEvent(new MouseEvent('click', {bubbles: true, clientX: x, clientY: y}));
        } else {
            console.warn("[Autoclicker] Could not find the red dot. Please make sure the game is visible.");
        }
    }

    // --- CONTROLS ---
    window.addEventListener('keydown', (e) => {
        if (e.key === "Enter") {
            if (!isRunning) {
                isRunning = true;
                console.log("%c[Autoclicker] STARTED (Interval: 0.1s)", "color: green; font-weight: bold;");
                clickInterval = setInterval(performClick, 100);
            }
        } else if (e.key === "Escape") {
            if (isRunning) {
                isRunning = false;
                clearInterval(clickInterval);
                console.log("%c[Autoclicker] STOPPED", "color: red; font-weight: bold;");
            }
        }
    });

    console.clear();
    console.log("%c--- Discord Quest Autoclicker Loaded ---", "font-size: 16px; font-weight: bold;");
    console.log("Controls: \n[Enter] -> Start \n[Esc] -> Stop");
    console.log("Current Status: Idle");
})();

Why this works best

  • No Mouse Interference: You can use your mouse freely in other tabs or programs.
  • Background Capable: As long as the Discord tab is open in a window, it will keep clicking.
  • Dynamic Selection: It automatically searches for the "smallest red dot" or the "Adventure" button, so it doesn't break if you move the window.

If you have Tampermonkey installed, you can save this as a new script to have it load automatically every time you visit the page!

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support