Greasy Fork

Greasy Fork is available in English.

FuckCXCY

用来解除湖南省大学生创新创业就业学院的限制更好的刷课。

当前为 2019-07-01 提交的版本,查看 最新版本

// ==UserScript==
// @name         FuckCXCY
// @namespace    [email protected]
// @version      0.4
// @description  用来解除湖南省大学生创新创业就业学院的限制更好的刷课。
// @author       Zeshawn
// @run-at       document-body
// @match      *://*.hunbys.com/*
// @require      https://code.jquery.com/jquery-1.8.3.min.js
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @grant        GM_setClipboard
// ==/UserScript==


$(function() {
    'use strict';
    var window = unsafeWindow
    var isPlaying = true;
    var nowcat = ''
    var video = document.getElementById("video")
    var oldInitVideo = window.LearnCourse.initVideo
    window.LearnCourse.initVideo = function(cbiId,catId,classType,event){
        nowcat=catId
        //if(nowcat>=600000){
        //   alert("为保证20天学习自然日,请您关闭脚本,余下课程请您20天内每日手动看几分钟\n\nby ZeshanwXiao");
        //}
        oldInitVideo(cbiId,catId,classType,event)
        console.log(nowcat)
    }

    var t1=window.setInterval(function(){
        video.playbackRate = 7
        window.ClassWork.popExam = function(){
        }
         video.onended =function(){

             window.onload=window.LearnCourse.initVideo(6476,nowcat+1,1,event);
             window.location.reload();
         }

        video.play();
    }, 100);
})();