🥇【华医网助手】huayiwang_完全免费_无人值守_自动播放|另有代挂_全自动_安全可靠_过人脸_全网最低价

huayiwang, 华医网,自动播放,自动静音,屏蔽答题,调整视频质量为最低,当前视频播放结束自动进入下一个视频,播放结束清理无用定时器

目前为 2024-07-24 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 🥇【华医网助手】huayiwang_完全免费_无人值守_自动播放|另有代挂_全自动_安全可靠_过人脸_全网最低价
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.4.2
  5. // @description huayiwang, 华医网,自动播放,自动静音,屏蔽答题,调整视频质量为最低,当前视频播放结束自动进入下一个视频,播放结束清理无用定时器
  6. // @author 华医网助手
  7. // @license AGPL License
  8. // @match *://*.91huayi.com/course_ware/course_ware_polyv.aspx?*
  9. // @match *://*.91huayi.com/pages/exam.aspx?*
  10. // @match *://*.91huayi.com/pages/exam_result.aspx?*
  11. // @match *//*.wsglw.net/train/courseware/cc?*
  12. // @match *://*.91huayi.com/*
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. (() => {
  17. // 非播放界面直接返回
  18. var urlInfos = window.location.href.split("/");
  19. var urlTip = urlInfos[urlInfos.length - 1].split("?")[0];
  20. if (urlTip != "course_ware_polyv.aspx") {
  21. return
  22. }
  23. addInfo();
  24. document.querySelector("button[onclick='closeBangZhu()']").click();//关闭温馨提醒
  25. killQuestion();
  26. examherftest()
  27. let video = document.querySelector('video');
  28. window.examInterval = setInterval(() => {
  29. examherftest()
  30. }, 1000);
  31. window.playInterval = setInterval(() => {
  32. if (video.paused) {
  33. video.play();
  34. }
  35. if (window.player && window.player.getCurrentLevel() != 1) {
  36. window.player.changeLevel(1)
  37. }
  38. video.volume = 0;
  39. video.muted = true;
  40. }, 1000);
  41. console.log()
  42. function examherftest() { //考试按钮激活状态检测
  43. var hreftest = document.getElementById("jrks").attributes["href"].value;
  44. if (hreftest != "#") { //考试按钮已激活
  45. clearInterval(window.playInterval);
  46. clearInterval(window.killQuestionInterval);
  47. //播放下一个视频
  48. const targetElements = document.querySelectorAll("i[id='top_play']");
  49. const parentElement = targetElements[0].parentElement;
  50. const grandparentElement = parentElement.parentElement;
  51.  
  52. const lis = document.querySelectorAll("li[class='lis-inside-content']");
  53. var index = Array.from(lis).findIndex(li => li === grandparentElement);
  54. console.log(index);
  55. if (index + 2 <= document.querySelectorAll("li[class='lis-inside-content']").length) {
  56. index += 2;
  57. console.log("新的Index" + index);
  58. document.querySelector("#top_body > div.video-container > div.page-container > div.page-content > ul > li:nth-child(" + index + ") > h2").click();
  59. setTimeout(function () {
  60. document.evaluate("//button[contains(., '知道了')]", document, null, XPathResult.ANY_TYPE).iterateNext().click();
  61. }, 2000);
  62. };
  63. };
  64. };
  65.  
  66. function killQuestion() {
  67. (async function () {
  68. while (!window.player || !window.player.sendQuestion) {
  69. await sleep(20);
  70. };
  71. //console.log("课堂问答跳过插入");
  72. window.player.sendQuestion = function () {
  73. //console.log("播放器尝试弹出课堂问答,已屏蔽。");
  74. };
  75. })();
  76. window.killQuestionInterval = setInterval(async function () {
  77. try {
  78. if ($('.pv-ask-head').length && $('.pv-ask-head').length > 0) {
  79. console.log("检测到问题对话框,尝试跳过");
  80. $(".pv-ask-skip").click();
  81. };
  82. } catch (err) {
  83. console.log(err);
  84. };
  85. try {
  86. if ($('.signBtn').length && $('.signBtn').length > 0) {
  87. console.log("检测到签到对话框,尝试跳过");
  88. $(".signBtn").click();
  89. };
  90. } catch (err) {
  91. console.log(err);
  92. };
  93. try {
  94. if ($("button[onclick='closeBangZhu()']").length && $("button[onclick='closeBangZhu()']").length > 0 && $("div[id='div_processbar_tip']").css("display") == "block") {
  95. console.log("检测到温馨提示对话框(不能拖拽),尝试跳过");//
  96. $("button[onclick='closeBangZhu()']").click();
  97. };
  98. } catch (err) {
  99. console.log(err);
  100. };
  101. try {
  102. if ($("button[class='btn_sign']").length && $("button[class='btn_sign']").length > 0) {
  103. console.log("检测到温馨提示对话框(疲劳提醒),尝试跳过");
  104. $("button[class='btn_sign']").click();
  105. };
  106. } catch (err) {
  107. console.log(err);
  108. };
  109. try {
  110. if ($('video').prop('paused') == true) {
  111. console.log("视频意外暂停,恢复播放");
  112. $('video').get(0).play();
  113. };
  114. } catch (err) {
  115. console.log(err);
  116. };
  117. }, 2000);
  118. };
  119.  
  120. function addInfo() {
  121. let tip = document.createElement('p');
  122. tip.style.fontSize = '50px';
  123. tip.style.color = 'red';
  124. tip.style.textAlign = 'center';
  125. tip.textContent = '有合作需求可加v: idpx1995';
  126. document.body.appendChild(tip);
  127. };
  128. })()

QingJ © 2025

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