杀死循环点击确认

每学习半小时自动点击确认,解放双手无需值守

  1. // ==UserScript==
  2. // @name Kill loop conform click
  3. // @name:zh-CN 杀死循环点击确认
  4. // @namespace http://github.com/itiharayuuko/
  5. // @version 0.1.2
  6. // @description Kill learn webset conform click per-30minutes
  7. // @author ItiharaYuuko
  8. // @match https://newnhc-kfkc.webtrn.cn/learnspace/learn/learn/templateeight/index.action?*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
  10. // @grant none
  11. // @license MIT
  12. // @description:zh-cn 每学习半小时自动点击确认,解放双手无需值守
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. function kill_loop_click() {
  19. var time_out = 0;
  20. var count = 0;
  21. setInterval(() => {
  22. if (typeof document.getElementsByClassName("layui-layer-btn0")[0] != "undefined") {
  23. $(".layui-layer-btn0").trigger("click");
  24. console.log("Loop conform cracked [" + count + "] times.");
  25. time_out = 0;
  26. // document.getElementById("container_display").click(); # V 0.1 Bug code.
  27. if ($("#player_pause").css("display") != "none"){ // # V 0.1.2 Bug fixed code
  28. $("#player_pause").click();
  29. }
  30. count += 1;
  31. }
  32. console.log("Time elapsed [" + time_out + "s].");
  33. time_out += 1;
  34. }, 1000);
  35. }
  36. kill_loop_click();
  37. })();

QingJ © 2025

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