广东继续教育和公需课自动刷课

广东继教刷课

目前为 2019-05-28 提交的版本。查看 最新版本

// ==UserScript==
// @name         广东继续教育和公需课自动刷课
// @namespace    https://greasyfork.org/
// @version      1.0
// @description  广东继教刷课
// @author       Cosil
// @match        http://ggfw.gdhrss.gov.cn/zxpx/auc/play/*
// ==/UserScript==

setTimeout(function(){
  $('.outter')[0].click();//开始播放
  p.on("ended", function() {
    $('body').stopTime();
    p.dispose;
    overWatch();
    var learnlist = $('.content-unstart') != null ? $('.content-unstart') : $('.content-learning');
    for(var i = 0;i<learnlist.length;i++){
      learnlist[i].parentElement.click()
    }
    setTimeout(function(){
      if(learnlist[0] == '学习中'){
        if(confirm('本课程全部学习完成!即将关闭页面!')){
          window.close();
        }
      }
    },1000)
  });
  map = {};//删题
}, 1000);//延时1秒进行