speed

宜宾学院智慧在线课程课程视频加速自动播放,使用该脚本选择网络较好的情况下进行,最好再连接网线进行学习。每一章节的每类课程视频需要手动切换选择

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         speed
// @namespace    宜宾学院智慧在线课程课程视频加速自动播放
// @description  宜宾学院智慧在线课程课程视频加速自动播放,使用该脚本选择网络较好的情况下进行,最好再连接网线进行学习。每一章节的每类课程视频需要手动切换选择
// @version      1.0.1
// @author       XIAOANDX
// @icon         https://blog.xiaoandx.club/images/avatar.png
// @match        http://mooc.yibinu.edu.cn/study/*
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function() {
        document.querySelector('video').playbackRate = 16;
    },5000);
    var overTime = "1:00";
    window.onload = function(){
        setInterval(()=>{
            var newTime=document.getElementById("mediaplayer_controlbar_elapsed").innerText;
            overTime=document.getElementById("mediaplayer_controlbar_duration").innerText;
            if(overTime != "" && newTime == overTime ){
                document.getElementsByClassName("view-tip")[1].click();
            }
        },7000);
    }
})();

function sleep(milliSeconds) {
    var startTime = new Date().getTime();
    while (new Date().getTime() < startTime + milliSeconds) {
        console.log(new Date().getTime());
    }
}