Auto Vote

Deletes account, logs back in via Roblox, loops

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

// ==UserScript==
// @name         Auto Vote
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Deletes account, logs back in via Roblox, loops
// @match        *://gag.gg/*
// @match        *://authorize.roblox.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
    'use strict';

    const url = window.location.href;

    // ─── PAGE 1: Main gag.gg page — expand section and click delete ───
    if (url.includes('gag.gg') && !url.includes('deleted=1')) {

        window.confirm = () => true;

        let loop;

        function run() {
            const header = document.querySelector('button.pf__collapse-head[data-pf-collapse]');

            if (!header) {
                console.warn('[AutoDelete] Header not found');
                clearInterval(loop);
                return;
            }

            if (header.getAttribute('aria-expanded') === 'false') {
                header.click();
                console.log('[AutoDelete] Opened collapse section');
            }

            setTimeout(() => {
                const deleteBtn = document.querySelector('button.pf__btn.pf__btn--ghost[data-pf-delete]');

                if (deleteBtn) {
                    deleteBtn.click();
                    console.log('[AutoDelete] Clicked delete button');
                } else {
                    console.warn('[AutoDelete] Delete button not found');
                    clearInterval(loop);
                }
            }, 600);
        }

        window.addEventListener('load', () => {
            setTimeout(() => {
                loop = setInterval(run, 3000);
            }, 1500);
        });
    }

    // ─── PAGE 2: Redirected to gag.gg/?deleted=1 — click Roblox login ───
    if (url.includes('gag.gg') && url.includes('deleted=1')) {

        window.addEventListener('load', () => {
            setTimeout(() => {
                const loginBtn = document.querySelector('a.rbxauth__signin[data-rbxauth-signin]');

                if (loginBtn) {
                    loginBtn.click();
                    console.log('[AutoDelete] Clicked Roblox login button');
                } else {
                    console.warn('[AutoDelete] Roblox login button not found');
                }
            }, 1500);
        });
    }

    // ─── PAGE 3: Roblox authorize page — click Continue ───
    if (url.includes('authorize.roblox.com')) {

        window.addEventListener('load', () => {
            setTimeout(() => {
                // Match by text content since the class names are auto-generated and may change
                const continueBtn = [...document.querySelectorAll('button')]
                    .find(btn => btn.textContent.trim() === 'Continue');

                if (continueBtn) {
                    continueBtn.click();
                    console.log('[AutoDelete] Clicked Continue on Roblox auth page');
                } else {
                    console.warn('[AutoDelete] Continue button not found');
                }
            }, 2000); // slightly longer wait for Roblox page to fully render
        });
    }
// ─── PAGE 4: Roblox permissionRequest step — wait for timer then confirm ───
if (url.includes('authorize.roblox.com')) {
    const observer = new MutationObserver(() => {
        if (window.location.href.includes('step=permissionRequest')) {
            observer.disconnect();
            const poller = setInterval(() => {
                const confirmBtn = [...document.querySelectorAll('button')]
                    .find(btn => btn.textContent.trim() === 'Confirm and Give Access');
                if (confirmBtn) {
                    confirmBtn.click();
                    console.log('[AutoDelete] Clicked confirm on permissionRequest');
                    clearInterval(poller);
                }
            }, 500);
        }
    });

    observer.observe(document.body, { childList: true, subtree: true });
}

// ─── PAGE 5: gag.gg/?signed_in=1 — click Vote ───
if (url.includes('gag.gg') && url.includes('signed_in=1')) {

    window.addEventListener('load', () => {
        setTimeout(() => {
            const voteBtn = document.querySelector('a.launch__vote[data-launch-vote]');

            if (voteBtn) {
                voteBtn.click();
                console.log('[AutoDelete] Clicked Vote button');
            } else {
                console.warn('[AutoDelete] Vote button not found');
            }
        }, 1500);
    });
}
/// ─── PAGE 6: gag.gg/vote/ — click heart button 20 times ───
if (url.includes('gag.gg/vote')) {
    let clickCount = 0;
    const maxClicks = 20;
    window.addEventListener('load', () => {
        setTimeout(() => {
            const poller = setInterval(() => {
                if (clickCount >= maxClicks) {
                    clearInterval(poller);
                    console.log('[AutoDelete] Done — clicked heart 20 times');
                    window.location.href = 'https://gag.gg/profile/';
                    return;
                }
                const heartBtn = document.querySelector('button.swipe__btn.swipe__btn--like[data-swipe-like]');
                if (heartBtn) {
                    heartBtn.click();
                    clickCount++;
                    console.log(`[AutoDelete] Clicked heart #${clickCount}`);
                }
            }, 1500);
        }, 2000);
    });
}
})();