[防检测]图寻pro插件pro max

按下1、2、3时有惊喜

// ==UserScript==
// @name         [防检测]图寻pro插件pro max
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  按下1、2、3时有惊喜
// @author       YourName
// @match         *://tuxun.fun/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 创建白屏遮罩层
    const overlay = document.createElement('div');
    overlay.style.position = 'fixed';
    overlay.style.top = '0';
    overlay.style.left = '0';
    overlay.style.width = '100%';
    overlay.style.height = '100%';
    overlay.style.backgroundColor = 'white';
    overlay.style.zIndex = '99';
    overlay.style.display = 'none';
    document.body.appendChild(overlay);

    // 监听键盘事件
    document.addEventListener('keydown', function(event) {
        if (event.key === '1' || event.key === '2' || event.key === '3') {
            overlay.style.display = 'block';
            disableInteractions();
        }
    });

    // 禁用页面交互
    function disableInteractions() {
        document.body.style.pointerEvents = 'none'; // 禁用所有点击事件
        document.body.style.userSelect = 'none';    // 禁用文本选择
    }

    // 启用页面交互
    function enableInteractions() {
        document.body.style.pointerEvents = ''; // 启用所有点击事件
        document.body.style.userSelect = '';    // 启用文本选择
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址