人类测试作弊工具

2023/10/21 08:20:09

当前为 2023-10-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name humanbenchmark.com Cheats
  3. // @name:zh-CN 人类测试作弊工具
  4. // @namespace Violentmonkey Scripts
  5. // @match https://humanbenchmark.com/tests/reactiontime
  6. // @grant GM_registerMenuCommand
  7. // @grant GM_unregisterMenuCommand
  8. // @grant GM_addValueChangeListener
  9. // @grant GM_setValue
  10. // @grant GM_getValue
  11. // @version 0.1
  12. // @author -
  13. // @license MIT
  14. // @require https://gf.qytechs.cn/scripts/476522-config-manager/code/Config_Manager.js?version=1264965
  15. // @run-at document-idle
  16. // @description:zh-cn 尽情享受作弊之旅吧!
  17. // @description 2023/10/21 08:20:09
  18. // ==/UserScript==
  19. 'use strict';
  20.  
  21. const cfg = [
  22. {
  23. name: "delay",
  24. type: "uint",
  25. desc: "设置延迟",
  26. },
  27. ];
  28. cfg.forEach(register);
  29.  
  30. const delay = n => new Promise(sol => setTimeout(sol, n));
  31.  
  32. const dd = document.querySelector('[data-test="true"]');
  33.  
  34. new MutationObserver(async (list, obs) => {
  35. await delay(config.delay);
  36. list.forEach(mu => {
  37. if (mu.type !== "attributes") return;
  38. if (mu.target.classList[0] == "view-go") {
  39. const args = {
  40. target: dd,
  41. buttons: 1,
  42. bubbles: true,
  43. cancelable: true,
  44. cancelBubble: false,
  45. };
  46. const ev = new MouseEvent("mousedown", args);
  47. dd.dispatchEvent(ev);
  48. }
  49. });
  50. }).observe(dd, {attributeFilter: ['class']});
  51.  
  52. // mousedown { target: div.view-go.e18o0sx0.css-saet2v.e19owgy77, buttons: 1, clientX: 115, clientY: 279, layerX: 115, layerY: 388 }
  53.  

QingJ © 2025

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