返回首頁 

湖南开放大学自动刷课

学习视频


Install this script?
// ==UserScript==// @name         湖南开放大学自动刷课// @namespace    http://tampermonkey.net/// @version      0.2// @description  学习视频// @author       Aether// @match        *.hnsydwpx.cn/*// @grant        none// @run-at       document-end// @license MIT// ==/UserScript==(function () {let hre = location.href;if (hre.match("www.hnsydwpx.cn/center.html")) {setTimeout(() => {console.log('go to my course')document.querySelector('.center-main').childNodes[3].childNodes[5].childNodes[1].click()}, 2000)setTimeout(() => {try {if (document.getElementsByClassName('iframe')[0].contentWindow.document.getElementById('LearnInCompleteCount').innerHTML != '0') {document.getElementsByClassName('iframe')[0].contentWindow.document.getElementById('LearnInCompleteCount').click()document.getElementsByClassName('iframe')[0].contentWindow.document.getElementById('LearnInCompleteArr').childNodes.item(0).getElementsByTagName('button')[0].click()}} catch(err) {window.location.reload();}}, 5000)}if (hre.match("www.hnsydwpx.cn/play.html")) {setTimeout(() => {document.getElementById('courseCatalogue').childNodes.item(3).getElementsByTagName('div')[1].getElementsByTagName('a')[0].click()}, 5000)}if (hre.match("www.hnsydwpx.cn/getcourseDetails.html")) {setInterval(() => {var cource_list = document.getElementById('courseCatalogue').querySelector('.list-item').querySelectorAll('.item-list')var finished = truefor(var i = 0; i < cource_list.length; i ++) {if (cource_list[i].querySelector('.item-list-progress').innerHTML != '100%') {finished = falsebreak}}if (finished == true) {console.log("back home page")window.location.replace('https://www.hnsydwpx.cn/center.html')}}, 5000);}})();