Solve with SCTG

Auto-click "Solve with SCTG" on any site

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Solve with SCTG
// @namespace    http://tampermonkey.net/
// @version      1.6
// @description  Auto-click "Solve with SCTG" on any site
// @author       KukuModz
// @license      MIT
// @match        *://*/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    const TARGET = 'solve with sctg';

    function clickSolve() {
        const elements = document.querySelectorAll('*:not(script):not(style)');
        for (const el of elements) {
            if (el.textContent && el.textContent.toLowerCase().includes(TARGET)) {
                el.click();
                console.log('[KukuModz] Clicked:', el);
            }
        }
    }

    window.addEventListener('load', () => {
        console.log('[KukuModz] Solve with SCTG active on', location.href);
        clickSolve();

        const observer = new MutationObserver(() => clickSolve());
        observer.observe(document.body, { childList: true, subtree: true });

        setInterval(clickSolve, 3000);

        // =========================
        // === TELEGRAM BANNER
        // =========================
        const telegramBanner = document.createElement('div');
        telegramBanner.style.cssText = `
            position: fixed; bottom: 15px; right: 15px;
            display: flex; align-items: center; gap: 8px;
            background: linear-gradient(90deg, #0088cc, #00c6ff);
            padding: 8px 16px; border-radius: 12px;
            color: white; font-weight: bold;
            box-shadow: 0 0 15px rgba(0,255,255,0.5);
            z-index: 999999;
            cursor: pointer;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        `;

        const telegramLink = document.createElement('a');
        telegramLink.href = 'https://t.me/+CKt0ZiZ-3GEwZTA0';
        telegramLink.target = '_blank';
        telegramLink.style.cssText = `
            display: flex; align-items: center; gap: 6px;
            color: white; text-decoration: none;
        `;
        const logo = document.createElement('img');
        logo.src = 'https://upload.wikimedia.org/wikipedia/commons/8/82/Telegram_logo.svg';
        logo.style.width = '20px';
        logo.style.height = '20px';
        const textSpan = document.createElement('span');
        textSpan.textContent = 'Join Telegram';
        telegramLink.appendChild(logo);
        telegramLink.appendChild(textSpan);
        telegramBanner.appendChild(telegramLink);

        telegramBanner.onmouseover = () => {
            telegramBanner.style.transform = 'scale(1.1)';
            telegramBanner.style.boxShadow = '0 0 25px rgba(0,255,255,0.8)';
        };
        telegramBanner.onmouseout = () => {
            telegramBanner.style.transform = 'scale(1)';
            telegramBanner.style.boxShadow = '0 0 15px rgba(0,255,255,0.5)';
        };

        document.body.appendChild(telegramBanner);
    });

})();