居然云课堂刷课 study.jran.com.cn

仅用于内部使用!!不暂停。重新内容。

Tính đến 09-05-2022. Xem phiên bản mới nhất.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         居然云课堂刷课 study.jran.com.cn
// @namespace    easyhome
// @version      2.0
// @description  仅用于内部使用!!不暂停。重新内容。
// @author       wangqifei
// @icon         https://www.google.com/s2/favicons?domain=juran.com.cn
// @match        http://*.yunxuetang.cn/kng/trn/mybuyedcourse.htm
// @match        http://*.yunxuetang.cn/kng/view/package/*
// @match        http://*.yunxuetang.cn/kng/course/package/video/*
// @match        http://*.yunxuetang.cn/kng/course/package/scorm/*
// @match        http*://study.juran.com.cn/kng/course/package/*
// @match        http*://study.juran.com.cn/sty/index.html
// @match        http://study.juran.com.cn/sty/*
// @match        http*://study.juran.com.cn/kng/course/package/*
// @match        http*://study.juran.com.cn/kng/view/package/*
// @match        http*://study.juran.com.cn/exam/test/examquestionpreview.htm*
// @match        http*://study.juran.com.cn/kng/plan/video/*
// @match        http*://study.juran.com.cn/plan/*
// @match        http*://study.juran.com.cn/exam/test/userexam.htm*
// @grant        GM_xmlhttpRequest
// @grant        unsafeWindow
// @connect      answer.com
// @connect      zhoumo.tech
// @require      https://cdn.bootcdn.net/ajax/libs/blueimp-md5/2.18.0/js/md5.min.js
// ==/UserScript==
setInterval(autoContinue,1000);
setTimeout(abcd,2000);
setTimeout(setInterval(sub,100000),3000);
function abcd(){
    if(myPlayer.getPlaybackRate() == 1){
        myPlayer.setPlaybackRate(2);
    }
    sub();
}
function autoContinue() {
    //var continueBtn = document.getElementById("reStartStudy");
    var a = parseFloat(document.getElementsByClassName("jw-knob jw-reset")[0].style.left);
    /*if(continueBtn && continueBtn.click){
        location.reload();
    }*/
    if(a>=99 && $('#ScheduleText').html() != '100%'){
        myPlayer.seek("1");
    }
    if($('#ScheduleText').html() == '100%'){
        if(myPlayer.getState() != "buffering"){
            myPlayer.seek(parseInt(player.bdPlayer.getDuration()));
        }
    }
    if(myPlayer.getState() == "paused"){
        myPlayer.play();
    }
}
function sub(){
    submitStudy();
}