Greasy Fork is available in English.

适用各种E学院看视频

每4分钟自动刷新,并且自动静音2倍速播放,自动点击登录界面的已阅读并同意

// ==UserScript==
// @name         适用各种E学院看视频
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  每4分钟自动刷新,并且自动静音2倍速播放,自动点击登录界面的已阅读并同意
// @author       Su.
// @match        */kng/*/video/*
// @match        http://edu.cscec81.com/login.htm
// @icon         https://picobd.yunxuetang.cn/sys/1623195376607/images/202106/6a5242c3f6464d30985cf4a60183056d.ico
// @require      https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js

// @grant GM_setValue
// @grant GM_getValue
// @grant unsafeWindow

// ==/UserScript==
function Video(){
    setInterval(function(){
        document.querySelector('video').playbackRate=2
        document.querySelector('video').play();
        const ele=document.querySelector('video')
        ele.muted='muted'
    },500);
    let time=240000;
    setTimeout(function(){
        location.reload();
    },time);
};
function Login(){
    setTimeout (function(){
        var checkboxmb2=document.querySelector('#chkloginpass').click()
    },1000)
};
function MainBranch(){
    if(location.href.indexOf('/video/')!==-1){
        Video();
    }
    if(location.href.indexOf('http://edu.cscec81.com/login.htm')!==-1){
        Login();
    }
}
MainBranch()