CCCPaste

🔥 VolcanoKey: Open Source Userscript (Violent...

// ==UserScript==
// @name         volcano full bypass + workink lol
// @version      1.6
// @match        https://*.work.ink/*
// @match        https://key.volcano.wtf/*
// @grant        window.close
// @grant        GM_xmlhttpRequest
// ==/UserScript==

(function () {
    'use strict';

    // CAPTCHA DETECTION AT THE VERY TOP - BLOCKS EXECUTION
    if (document.title === 'Just a moment...' ||
        document.querySelector('iframe[src*="cloudflare.com"][src*="challenge"]') ||
        document.querySelector('#cf-chl-widget-z1tf6')) {
        console.log("⏳ Cloudflare captcha detected, stopping script...");
        return; // Stop entire script if captcha is present
    }

    let copyButtonClicked = false; // Track if copy button was clicked

    // HD-DRAWER REMOVAL FUNCTION
    const removeHDDrawer = () => {
        const hdDrawer = document.getElementById('hd-drawer');
        if (hdDrawer) {
            hdDrawer.remove();
            console.log("🗑️ Removed hd-drawer");
        }
    };

    // COPY BUTTON CLICK FUNCTION
    const clickCopyButton = () => {
        if (!copyButtonClicked) {
            const copyBtn = document.getElementById('copy-key-btn');
            if (copyBtn) {
                console.log("📋 Copy key button found, clicking once...");
                copyBtn.click();
                copyButtonClicked = true;

                // Optional: Check if text was copied by listening for the copy event
                document.addEventListener('copy', function handler(e) {
                    console.log("✅ Text copied to clipboard");
                    document.removeEventListener('copy', handler);
                }, { once: true });
            }
        }
    };

    // INVALID HASH DETECTION AND WINDOW CLOSE
    const checkInvalidHash = () => {
        const body = document.body;
        if (body && body.innerHTML.includes('Invalid work.ink hash')) {
            console.log("❌ Invalid work.ink hash detected, closing window");
            window.close();
            return true;
        }
        return false;
    };

    // PERSISTENT HD-MODAL REMOVAL - RUNS FOREVER
    const removeHdModal = () => {
        // Remove hd-modal-background
        const hdModal = document.querySelector('#hd-modal-background');
        if (hdModal) {
            hdModal.remove();
            console.log("🗑️ Removed hd-modal-background");
        }

        // Click hd-close-button if found
        const closeButton = document.querySelector('#hd-close-button');
        if (closeButton) {
            closeButton.click();
            console.log("🔘 Clicked hd-close-button");
        }

        // Also remove the entire container as backup
        const hdContainer = document.querySelector('#hd-drawer-container');
        if (hdContainer) {
            hdContainer.remove();
            console.log("🗑️ Removed hd-drawer-container");
        }

        // Remove hd-drawer
        removeHDDrawer();

        // Check for invalid hash
        checkInvalidHash();

        // Try to click copy button
        clickCopyButton();
    };

    // Remove immediately and keep checking forever
    removeHdModal();
    setInterval(removeHdModal, 100);

    /* === VOLCANO AUTOCLICK - ULTRA FAST === */
    if (window.location.hostname.includes("key.volcano.wtf")) {
        const spamClick = () => {
            const btn = [...document.querySelectorAll("button, a")]
                .find(el => el.innerText && (
                    el.innerText.includes("Continue with Work.Ink") ||
                    el.innerText.includes("Continue to Next Step")
                ));
            if (btn) {
                console.log(" [Bypass] Auto-clicking Volcano checkpoint button:", btn.innerText.trim());
                btn.click();
            }

            // Check for invalid hash on volcano site too
            checkInvalidHash();

            // Try to click copy button on volcano site
            clickCopyButton();
        };
        spamClick();
        setInterval(spamClick, 200);
    }

    /* === WORK.INK SYSTEM - OPTIMIZED SPEED === */
    if (window.location.hostname.includes("work.ink")) {
        console.log("⚡ Work.ink bypass initiated - FAST MODE");

        let countdownStarted = false;
        let destinationClicks = 0;
        let countdownStartTime = 0;

        // Remove blocking elements immediately
        const removeBlockers = () => {
            document.querySelector('div.fixed.top-16.left-0.right-0.bottom-0.bg-white.z-40.overflow-y-auto')?.remove();
            document.querySelector('.main-modal')?.remove();
            document.querySelector('[class*="overlay"]')?.remove();
            document.querySelector('[class*="loading"]')?.remove();

            // Also remove hd-modal if it appears
            removeHdModal();

            // Check for invalid hash
            checkInvalidHash();

            // Try to click copy button
            clickCopyButton();
        };

        // Fast button clicking system for skip buttons
        const fastClicker = () => {
            removeBlockers();

            // Click all skip/access buttons immediately (except destination button)
            const buttonsToClick = [
                '.button-box .accessBtn',
                'button.closelabel',
                'button.skipBtn',
                '.interestedBtn.button',
                '[onclick*="skip"]',
                '[class*="skip"]'
            ];

            buttonsToClick.forEach(selector => {
                const btn = document.querySelector(selector);
                if (btn && btn.offsetParent !== null) {
                    btn.click();
                }
            });

            // Detect Go To Destination button but handle it properly
            const destinationBtn = [...document.querySelectorAll("button, a")]
                .find(el => el.innerText && el.innerText.trim().toLowerCase().includes("go to destination"));

            if (destinationBtn && !countdownStarted) {
                destinationClicks++;

                // Ignore first click (usually CAPTCHA)
                if (destinationClicks === 1) {
                    console.log("⏭ Ignoring first Go To Destination button (likely CAPTCHA)");
                    return;
                }

                // Start the proper 40-second countdown
                if (destinationClicks >= 2 && !countdownStarted) {
                    countdownStarted = true;
                    countdownStartTime = Date.now();
                    console.log("⏰ Starting 40-second countdown at:", new Date().toLocaleTimeString());

                    // Setup extension bypass
                    if (typeof unsafeWindow.chrome === 'undefined') unsafeWindow.chrome = {};
                    if (typeof unsafeWindow.chrome.runtime === 'undefined') unsafeWindow.chrome.runtime = {};
                    if (typeof unsafeWindow.chrome.runtime.sendMessage === 'undefined') {
                        unsafeWindow.chrome.runtime.sendMessage = function(extensionId, message, options, responseCallback) {
                            const callback = [responseCallback, options].find(arg => typeof arg === 'function');
                            if (extensionId === 'deaiapbieocoklikiokamcdklicacgdo' && callback) {
                                setTimeout(() => callback({ "installed": true, "name": "pdfeditor" }), 10);
                            } else if (callback) {
                                setTimeout(() => callback({ installed: false }), 10);
                            }
                        };
                    }

                    // Start countdown timer
                    const countdownInterval = setInterval(() => {
                        const currentTime = Date.now();
                        const elapsed = (currentTime - countdownStartTime) / 1000;
                        const remaining = Math.max(0, Math.ceil(40 - elapsed));

                        console.log(`⏱️ Countdown: ${remaining}s remaining`);

                        // Update button text to show countdown
                        if (destinationBtn && remaining > 0) {
                            destinationBtn.textContent = `Go to Destination (${remaining}s)`;
                            destinationBtn.disabled = true;
                            destinationBtn.style.opacity = '0.6';
                            destinationBtn.style.pointerEvents = 'none';
                        }

                        if (elapsed >= 40) {
                            clearInterval(countdownInterval);
                            console.log("✅ 40-second countdown finished at:", new Date().toLocaleTimeString());

                            // Re-enable and click the button
                            if (destinationBtn) {
                                destinationBtn.disabled = false;
                                destinationBtn.style.opacity = '1';
                                destinationBtn.style.pointerEvents = 'auto';
                                destinationBtn.textContent = 'Go to Destination';
                                console.log("🔘 Clicking destination button...");
                                destinationBtn.click();
                            }

                            // Click other required buttons
                            setTimeout(() => {
                                document.querySelector('.interestedBtn.button')?.click();
                                document.getElementById("access-offers")?.click();
                                console.log("🔘 Clicked additional buttons");

                                // Close after completion
                                setTimeout(() => {
                                    console.log("🚪 Closing tab...");
                                    window.close();
                                }, 2000);
                            }, 500);
                        }
                    }, 1000); // Check every second for accurate timing
                }
            }
        };

        // Run immediately and very frequently for skip buttons
        fastClicker();
        setInterval(fastClicker, 100);

        // Aggressive modal/overlay removal
        setInterval(removeBlockers, 50);

        // Additional invalid hash checker for work.ink
        setInterval(checkInvalidHash, 500);

        // Additional copy button checker for work.ink
        setInterval(clickCopyButton, 500);
    }
})();