您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
国家中小学平台自动16倍数,下一集,全程静音
当前为
// ==UserScript== // @name 国家中小学智慧教育平台 // @namespace http://tampermonkey.net/ // @version 0.2.3 // @license CC BY-NC-SA // @description 国家中小学平台自动16倍数,下一集,全程静音 // @author moxiaoying // @match http*://www.zxx.edu.cn/teacherTraining/* // @match http*://basic.smartedu.cn/teacherTraining/* // @icon https://www.google.com/s2/favicons?sz=64&domain=zxx.edu.cn // @grant none // ==/UserScript== (function() { 'use strict'; setTimeout(main, 5000); function main(){ console.log(`刷课脚本开始运行`) var vid = document.getElementsByTagName("video")[0]; // 置空pause方法 vid.pause = function () {} vid.muted = true; vid.play(); console.log('开始播放') vid.playbackRate = 16 var total_ep = document.getElementsByClassName('resource-item').length; console.log(`总共集数: ${total_ep}`); var current_index; document.getElementsByClassName('resource-item').forEach(function(element,index){ if (element.classList.length === 3) { current_index = index }}); console.log(`当前集号: ${current_index}`); // 监听 visibilitychange 事件 // document.addEventListener('visibilitychange', function() { // if (document.hidden) { // // 当文档处于不活动状态时,显示弹出窗口 // document.getElementsByTagName("video")[0].play() // } // }); // debugger vid.addEventListener('ended', function() { console.log('当前记号:',current_index, ' 总记号:', total_ep); if (current_index <= total_ep) { console.log('播放结束,切换下一个视频'); //document.getElementsByClassName('resource-item')[current_index].click(); document.getElementsByClassName('resource-item')[current_index+=1].click(); console.log(`已切换到视频${current_index}`); setTimeout(main, 5000); console.log(`开始刷视频${current_index}`) var vid = document.getElementsByTagName("video")[0]; vid.muted = true; vid.play(); console.log('开始播放') vid.playbackRate = 16 } else { console.log("该章节已挂机完成。"); } }, false) } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址