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

按下1、2、3时有惊喜

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==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 = '';    // 启用文本选择
    }
})();