您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
华中师范大学刷题
// ==UserScript== // @name 华中师范网课刷题 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 华中师范大学刷题 // @author You // @match http://*/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // ==/UserScript== ;(function () { 'use strict' const host = document.location.host const BASE_URL = '0137.whxunw.com' let nextvideo = 0 const video = getE('tm_video_html5_api') const modelMask = getE('layui-layer-shade1') const mask2 = getE('layui-layer1') function initvideo(host, BASE_URL) { if (host === BASE_URL) { video.muted = true modelMask.style.display = 'none' mask2.style.display = 'none' video.play() setInterval(() => { if (video.pause) { video.play() } }, 1000) } } function getE(id) { return document.getElementById(id) } function autoPlayVideo() { const mask1 = getE('layui-layer2') if (mask1 && mask1.style.display !== 'none') { window.location.reload() } const lessonItems = [...document.querySelectorAll('li[id^="lesson_"]')] lessonItems.forEach((i, k) => { if (i.className === 'on') { nextvideo = k + 1 if (nextvideo === lessonItems.length) { video.removeEventListener('ended', autoPlayVideo) } } }) console.log(lessonItems[nextvideo]) lessonItems[nextvideo].click() } initvideo(host, BASE_URL) video.addEventListener('ended', autoPlayVideo) setTimeout(() => { location.reload() }, 5 * 60 * 1000) // Your code here... })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址