🏠 Home 

Greasy Fork is available in English.

广东继续教育和公需课自动刷课::ggfw.gdhrss

广东公需课和继教刷课,章节完成自动进入下章


安装此脚本?
  1. // ==UserScript==
  2. // @name 广东继续教育和公需课自动刷课::ggfw.gdhrss
  3. // @namespace https://greasyfork.org/
  4. // @version 1.5.2
  5. // @description 广东公需课和继教刷课,章节完成自动进入下章
  6. // @author Cosil.C
  7. // @icon https://ggfw.gdhrss.gov.cn/favicon.ico
  8. // @match http*://ggfw.gdhrss.gov.cn/zxpx/auc/play*
  9. // @match http*://ggfw.hrss.gd.gov.cn/zxpx/auc/play*
  10. // @license GPLv3
  11. // ==/UserScript==
  12. setTimeout(function () {
  13. //静音
  14. p.tag.muted = true;
  15. //删题
  16. map = {};
  17. var errChecking = setInterval(function () {
  18. //if($(".prism-ErrorMessage").css("display")!='none'){
  19. // location.reload();
  20. //}
  21. if ($('.learnpercent').text().indexOf('已完成') != -1) {
  22. var learnlist = $("a:contains('未完成')").length != 0 ? $("a:contains('未完成')") : $("a:contains('未开始')");
  23. if (learnlist.length == 0) {
  24. if (confirm('本课程全部学习完成!即将关闭页面!')) {
  25. window.close();
  26. }
  27. } else {
  28. learnlist.each(function () {
  29. this.click();
  30. })
  31. }
  32. }
  33. //暂停时自动开始播放
  34. if (p.paused()) {
  35. p.play()
  36. }
  37. }, 500)//错误自动刷新
  38. }, 1000);//延时1秒进行