🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2025/12/24 04:24:58
🔄 下次更新时间:2025/12/24 05:24:58
手动刷新缓存

key crusher userscript

does his work

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         key crusher userscript 
// @namespace    http://tampermonkey.net/
// @version      3.4
// @description   does his work
// @author       Nytralis
// @match        *://*/*
// @grant        GM_setClipboard
// @run-at       document-start
// ==/UserScript==

(function () {
    'use strict';

    const isKeyCrusher = location.hostname.includes('keycrusher.xyz');
    const keywords = ['auth', 'plato', 'boost', 'bstshrt'];

    // === BOUTON FLOTTANT (partout sauf keycrusher) ===
    if (!isKeyCrusher) {
        if (!window.name || !window.name.trim()) window.name = location.href;

        const btn = document.createElement('div');
        btn.innerHTML = '🔗';
        btn.title = 'Copier URL + aller sur keycrusher.xyz';
        btn.style.cssText = `
            position:fixed !important;top:12px !important;left:12px !important;z-index:999999 !important;
            width:44px !important;height:44px !important;display:flex !important;align-items:center !important;
            justify-content:center !important;font-size:22px !important;cursor:pointer !important;
            background:rgba(255,255,255,0.15) !important;border-radius:14px !important;
            backdrop-filter:blur(12px) !important;border:1px solid rgba(255,255,255,0.3) !important;
            color:#fff !important;box-shadow:0 4px 15px rgba(0,0,0,0.2) !important;
            transition:all .25s ease !important;
        `;
        btn.onmouseenter = () => btn.style.transform = 'scale(1.15)';
        btn.onmouseleave = () => btn.style.transform = 'scale(1)';
        btn.onclick = () => {
            if (typeof GM_setClipboard === 'function') GM_setClipboard(location.href);
            else navigator.clipboard?.writeText(location.href);
            location.replace('https://keycrusher.xyz/');
        };
        const inject = () => document.body ? document.body.appendChild(btn) : requestAnimationFrame(inject);
        inject();
    }

    // === REDIRECTION AUTO ===
    if (!isKeyCrusher && keywords.some(k => location.href.toLowerCase().includes(k))) {
        if (typeof GM_setClipboard === 'function') GM_setClipboard(location.href);
        else navigator.clipboard?.writeText(location.href);
        location.replace('https://keycrusher.xyz/');
        return;
    }

    // === KEYCRUSHER.XYZ ===
    if (isKeyCrusher) {
        const url = (window.name || '').trim() || 'https://google.com/';

        // Remplissage ultra-agressif
        const fillAll = () => {
            document.querySelectorAll('input, textarea, [contenteditable], [contenteditable="true"]')
                .forEach(el => {
                    if (el.offsetParent === null) return; // caché
                    if (el.disabled || el.readOnly) return;

                    try { el.value = url; } catch(e) {}
                    el.innerText = url;
                    el.textContent = url;

                    ['input', 'change', 'keydown', 'keyup', 'paste', 'focus'].forEach(ev =>
                        el.dispatchEvent(new Event(ev, { bubbles: true, cancelable: true }))
                    );
                });
        };

        // Clique TOUS les éléments contenant "bypass" (même div CSS cliquables)
        let bypassDone = false;
        const clickAllBypass = () => {
            if (bypassDone) return;
            let clicked = 0;
            document.querySelectorAll('*').forEach(el => {
                const txt = (el.textContent || el.innerText || el.ariaLabel || '').toLowerCase();
                if (txt.includes('bypass') && el.offsetParent !== null && el.offsetWidth > 0 && el.offsetHeight > 0) {
                    el.click();
                    clicked++;
                }
            });
            if (clicked > 0) bypassDone = true;
        };

        // Copy Text auto
        let copyDone = false;
        const clickCopy = () => {
            if (copyDone) return;
            document.querySelectorAll('*').forEach(el => {
                const txt = (el.textContent || el.innerText || '').toLowerCase();
                if ((txt.includes('copy text') || txt.includes('copytext')) && el.offsetParent !== null) {
                    el.click();
                    setTimeout(() => el.click(), 300);
                    copyDone = true;
                }
            });
        };

        const loop = () => {
            fillAll();
            if (!bypassDone) {
                setTimeout(clickAllBypass, 5000);
            }
            clickCopy();
        };

        setTimeout(loop, 800);
        setInterval(loop, 1200);

        // Indicateur
        const panel = document.createElement('div');
        panel.textContent = 'KEYCRUSHER 100%';
        panel.style.cssText = 'position:fixed;bottom:10px;left:10px;z-index:999999;background:#000;color:#0f0;padding:12px;border-radius:10px;font-family:monospace;font-weight:bold;';
        document.body.appendChild(panel);
    }
})();