🥇河南药师网刷课【影刃】

河南药师网刷课,功能:自动点击确定学习按钮。自助下单请前往影刃平台,在线帮助文档见:https://doc.yingren.xyz/

  1. // ==UserScript==
  2. // @name 🥇河南药师网刷课【影刃】
  3. // @namespace https://doc.yingren.xyz
  4. // @icon https://doc.yingren.xyz/img/logo2.jpg
  5. // @version 2
  6. // @description 河南药师网刷课,功能:自动点击确定学习按钮。自助下单请前往影刃平台,在线帮助文档见:https://doc.yingren.xyz/
  7. // @author 影刃
  8. // @match https://www.hnysw.org/*
  9. // @match http://www.hnysw.org/*
  10. // @grant none
  11. // @license GPL 3
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. if (location.pathname.includes('lessonDetails')) {
  17. function checkPageElements() {
  18. const confirmBtnSelector = 'div.layui-layer-btn.layui-layer-btn- > a:not([disabled])';
  19. const progressSelector = '#height .hour-right-bottom .progress.head';
  20. const nextBtnSelector = '#height .hour-right-bottom .button > a:nth-child(2) > button';
  21.  
  22. // 处理确认弹窗
  23. const confirmButton = document.querySelector(confirmBtnSelector);
  24. if (confirmButton?.textContent.trim() === '确定') {
  25. confirmButton.click();
  26. return;
  27. }
  28.  
  29. // 检查进度
  30. const progressElement = document.querySelector(progressSelector);
  31. if (progressElement?.textContent.includes('100%')) {
  32. const nextButton = document.querySelector(nextBtnSelector);
  33. nextButton?.click();
  34. }
  35. }
  36.  
  37. const intervalTime = 2000;
  38. const intervalId = setInterval(checkPageElements, intervalTime);
  39. window.addEventListener('beforeunload', () => {
  40. clearInterval(intervalId);
  41. });
  42. }
  43. })();

QingJ © 2025

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