// ==UserScript== // @name (秒过已恢复)2024年智慧中小学寒假教师研修秒过 // @namespace http://tampermonkey.net/ // @version 0.51 // @author hydrachs // @description (秒过已恢复)秒过2024年智慧中小学寒假教师研修,效果可以见 https://www.bilibili.com/video/BV1pT4m1S7Cd 感谢@XiaoTong6666大佬提供的思路! // @license MIT // @match https://basic.smartedu.cn/* // @match https://www.smartedu.cn/* // @match https://teacher.vocational.smartedu.cn/* // @match https://core.teacher.vocational.smartedu.cn/* // @downloadURL none // ==/UserScript== (function() { 'use strict'; function runCodeInConsole(code) { var script = document.createElement('script'); script.textContent = code; (document.head || document.documentElement).appendChild(script); script.remove(); } document.addEventListener('click', function(event) { if (event.button === 0) { setTimeout(function() { runCodeInConsole(`document.querySelector("video").dispatchEvent(new Event("ended"))`); runCodeInConsole(` var v = document.querySelector("video"); if (v) { v.muted = true; v.playbackRate = 1.5; v.play(); } `); }, 300); } }); })();