Greasy Fork

Greasy Fork is available in English.

FuckCXCY

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

当前为 2019-04-22 提交的版本,查看 最新版本

// ==UserScript==
// @name         FuckCXCY
// @namespace    [email protected]
// @version      0.3
// @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>=597121){
           alert("为保证20天学习自然日,请您关闭脚本,余下课程请您20天内每日手动看几分钟\n\nby ZeshanwXiao");
        }
        oldInitVideo(cbiId,catId,classType,event)
        console.log(nowcat)
    }
    video.onended = function(){
        if(nowcat>=597121){
           return;
        }
        window.location.reload()
    }
    $("#hostBody").hover(function(){},function(){video.play()})
    var t1=window.setInterval(function(){
        video.playbackRate = 7
        window.ClassWork.popExam = function(){
        }
    }, 100);
})();