Greasy Fork

来自缓存

暑假研

(自动播放、自动下一节)

目前为 2022-08-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         暑假研
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  (自动播放、自动下一节)
// @author       You
// @match        https://www.zxx.edu.cn/*
// @grant        none
// @license      You
// ==/UserScript==

(function() {
    'use strict';
    //document.querySelector('video').play();
    //current_video.volume = 0
    // Your code here...
    setInterval(function () {
        for (var i = 0; i < document.getElementsByTagName('video').length; i++) {
            var current_video = document.getElementsByTagName('video')[i]
            // 静音
            current_video.volume = 0
            document.querySelector('video').playbackRate = 4;

            // 如果视频被暂停
            if (current_video.paused) {
                current_video.play()
            }

        }
    }, 2000)
})();