KeyCrusher userscript

bypass

目前為 2025-11-17 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         KeyCrusher userscript
// @namespace    http://tampermonkey.net/
// @version      4.2
// @description  bypass
// @author       nytralis
// @match        *://*/*
// @grant        GM_setValue
// @grant        GM_getValue
// @run-at       document-start
// ==/UserScript==

(function () {
    'use strict';

    const KEY = 'auto_click_coords_v4';

    let coords = GM_getValue(KEY, null);           // coordonnées sauvegardées
    let configMode = false;

    // === MENU DISCRET EN BAS À GAUCHE (ne gêne jamais) ===
    const menu = document.createElement('div');
    menu.style.cssText = `
        position:fixed !important; bottom:15px !important; left:15px !important; z-index:9999999 !important;
        background:rgba(0,0,0,0.8) !important; color:#0f0 !important; padding:10px 14px !important;
        border-radius:12px !important; font-family:monospace !important; font-size:13px !important;
        cursor:pointer !important; user-select:none !important; backdrop-filter:blur(10px) !important;
        border:1px solid #0f0 !important; box-shadow:0 0 15px rgba(0,255,0,0.4) !important;
        transition:all .3s !important;
    `;
    menu.textContent = coords ? `Clic auto → ${coords.x},${coords.y}` : 'Configurer clic';
    document.body.appendChild(menu);

    // Hover effet
    menu.onmouseenter = () => menu.style.transform = 'scale(1.08)';
    menu.onmouseleave = () => menu.style.transform = 'scale(1)';

    // === CLIC SUR LE MENU = activer/désactiver mode config ===
    menu.onclick = () => {
        configMode = !configMode;
        menu.textContent = configMode ? '➤ Clique sur le bouton Bypass' : (coords ? `Clic auto → ${coords.x},${coords.y}` : 'Configurer clic');
        menu.style.background = configMode ? '#0f0' : 'rgba(0,0,0,0.8)';
        menu.style.color = configMode ? '#000' : '#0f0';
    };

    // === Capture du clic en mode config ===
    document.addEventListener('click', (e) => {
        if (configMode) {
            coords = { x: e.clientX, y: e.clientY };
            GM_setValue(KEY, coords);
            configMode = false;
            menu.textContent = `Clic auto → ${coords.x},${coords.y}`;
            menu.style.background = 'rgba(0,0,0,0.8)';
            menu.style.color = '#0f0';
            e.preventDefault();
            e.stopPropagation();
        }
    }, true);

    // === CLIC AUTOMATIQUE AUX COORDONNÉES ===
    const autoClick = () => {
        if (!coords) return;
        const el = document.elementFromPoint(coords.x, coords.y);
        if (el && el.offsetParent !== null) {
            el.click();
            console.log('[AutoClick] Clic à', coords.x, coords.y);
        }
    };

    // === REMPLISSAGE AUTO DU LIEN (sur keycrusher, ace-bypass, etc.) ===
    const fillUrl = () => {
        const url = (window.name || '').trim() || location.href;
        document.querySelectorAll('input, textarea, [contenteditable]').forEach(el => {
            if (!el.disabled && !el.readOnly) {
                el.value = url;
                el.innerText = url;
                el.dispatchEvent(new Event('input', { bubbles: true }));
                el.dispatchEvent(new Event('change', { bubbles: true }));
            }
        });
    };

    // === COPY AUTO dès que "copy" apparaît ===
    const autoCopy = () => {
        document.querySelectorAll('*').forEach(el => {
            const txt = (el.textContent || '').toLowerCase();
            if (txt.includes('copy') && el.offsetParent !== null) {
                el.click();
            }
        });
    };

    // === BOUCLE PRINCIPALE (seulement sur les sites de bypass) ===
    if (location.hostname.includes('keycrusher.xyz') || 
        location.hostname.includes('ace-bypass.com') || 
        location.hostname.includes('izen.lol')) {

        const main = () => {
            fillUrl();
            if (coords) setTimeout(autoClick, 5000);  // 5 secondes après chargement
            autoCopy();
        };

        setTimeout(main, 1000);
        setInterval(main, 1500);
    }

    // === REDIRECTION AUTO + BOUTON FLOTTANT CLASSIQUE (partout ailleurs) ===
    if (!location.hostname.includes('keycrusher') && 
        !location.hostname.includes('ace-bypass') && 
        !location.hostname.includes('izen.lol')) {

        if (!window.name) window.name = location.href;

        const btn = document.createElement('div');
        btn.innerHTML = '🔗';
        btn.title = 'Aller sur KeyCrusher';
        btn.style.cssText = 'position:fixed;top:12px;left:12px;z-index:999999;width:42px;height:42px;background:rgba(255,255,255,0.15);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;backdrop-filter:blur(10px);';
        btn.onclick = () => location.href = 'https://keycrusher.xyz/';
        document.body.appendChild(btn);
    }
})();