刷课不暂停脚本

刷课不暂停脚本v0.1

// ==UserScript==
// @name         刷课不暂停脚本
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  刷课不暂停脚本v0.1
// @author       random
// @match        https://ilearn.gientech.com/**
// @icon         https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    console.info("刷课不暂停脚本启动");
    console.info("删除消耗性能的打印功能");
    window.console.log = function() {};
    window.timer = setInterval(() => { try{
        var videos = document.getElementsByTagName("video");
        if (videos) {
            for(let i = 0; i < videos.length; i++) {
                let video = videos[i];
                video.play();
            }
        }
    } finally {} }, 1 * 500);
    console.info("刷课不暂停脚本完毕 清除定时器请用 clearInterval(window.timer)");
})();