您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
视频不暂停
// ==UserScript== // @name 至善学堂 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 视频不暂停 // @author meow // @match https://xnjz.yunxuetang.cn/kng/course/package/* // @icon https://picobd.yunxuetang.cn/sys/15828173620/images/202108/c6999294b8f74f0ba718f7fde5d4e879.png?r=41702125 // @license AGPL-3.0-or-later // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... console.log("miado"); var startTime=new Date().getTime(); var dingShiId= window.setInterval(function(){ if(new Date().getTime()-startTime>6000000){ //超过6000秒,移除定时器 clearInterval(dingShiId) } //点弹窗 var btn = document.querySelector('#reStartStudy'); if(btn!=null){ myMousedown = true; btn.onclick(); console.log("meow"); } //定时器:1000毫秒一次 }, 1000); })();