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

仅用于内部使用!!代码重写,支持倍速。

目前為 2022-05-09 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         居然云课堂刷课 study.jran.com.cn
// @namespace    easyhome
// @version      2.0
// @description  仅用于内部使用!!代码重写,支持倍速。
// @author       wangqifei
// @icon         https://avatars.githubusercontent.com/u/8955860?v=4
// @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*
// @connect      Airli
// @namespace com.fly
// ==/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();
}