humanbenchmark.com Cheats

2023/10/21 08:20:09

目前為 2023-10-21 提交的版本,檢視 最新版本

// ==UserScript==
// @name        humanbenchmark.com Cheats
// @name:zh-CN  人类测试作弊工具
// @namespace   Violentmonkey Scripts
// @match       https://humanbenchmark.com/tests/reactiontime
// @grant       GM_registerMenuCommand
// @grant       GM_unregisterMenuCommand
// @grant       GM_addValueChangeListener
// @grant       GM_setValue
// @grant       GM_getValue
// @version     0.1
// @author      -
// @license     MIT
// @require     https://gf.qytechs.cn/scripts/476522-config-manager/code/Config_Manager.js?version=1264965
// @run-at      document-idle
// @description:zh-cn 尽情享受作弊之旅吧!
// @description 2023/10/21 08:20:09
// ==/UserScript==
'use strict';

const cfg = [
    {
        name: "delay",
        type: "uint",
        desc: "设置延迟",
    },
];
cfg.forEach(register);

const delay = n => new Promise(sol => setTimeout(sol, n));

const dd = document.querySelector('[data-test="true"]');

new MutationObserver(async (list, obs) => {
    await delay(config.delay);
    list.forEach(mu => {
        if (mu.type !== "attributes") return;
        if (mu.target.classList[0] == "view-go") {
            const args = {
                target: dd,
                buttons: 1,
                bubbles: true,
                cancelable: true,
                cancelBubble: false,
            };
            const ev = new MouseEvent("mousedown", args);
            dd.dispatchEvent(ev);
        }
    });
}).observe(dd, {attributeFilter: ['class']});

// mousedown { target: div.view-go.e18o0sx0.css-saet2v.e19owgy77, buttons: 1, clientX: 115, clientY: 279, layerX: 115, layerY: 388 }

QingJ © 2025

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