// ==UserScript== // @name 上海国家会计学院过网课验证 // @namespace no.no.com // @version 1.0.8 // @description 破解鼠标几分钟不移动自动暂停,破解每20分钟答题 // @author Rex // @run-at document-start // @grant unsafeWindow // @match *://*.esnai.net/c/public/showflashvideo.jsp* // ==/UserScript== //需要在浏览器设置中 媒体自动播放相关设置中给 [*.]esnai.net 添加白名单,否则可能无法自动播放下一个视频 var script = document.createElement("script"); script.type = "text/javascript"; script.text = "window.setInterval(function (){document.body.onmousemove();if (InteractiveMinutes && InteractiveMinutes>0){ InteractiveMinutes=0;}let playpauses =document.getElementsByClassName('pv-playpause');if(playpauses.length>0){let btn =playpauses[0];if (btn.classList.contains('pv-icon-btn-play')){btn.click();}}let tips=document.getElementsByClassName('pv-line-tips');if(tips.length>0){let neterr=tips[0].getElementsByTagName('a');if (neterr.length>0&&neterr[0].text=='切换线路'){neterr[0].click();}}},1000);" document.body.appendChild(script);