继续教育学习脚本
/*
本腳本運(yùn)行于瀏覽器conlose中,自動(dòng)點(diǎn)擊“繼續(xù)學(xué)習(xí)”按鈕,以實(shí)現(xiàn)阻止視頻的暫停
*/
(function(){
??? var getStyle=function(obj,styleName){
??????? if(obj.style){
??????????? return obj.style[styleName];
??????? }else if(obj.currentStyle){
??????????? return obj.currentStyle[styleName];
??????? }else if(window.getComputedStyle(obj)){
??????????? return window.getComputedStyle(obj)[styleName];
??????? }else{
??????????? return null;
??????? }
??? };
??? var mask=document.getElementById('courseframe').contentWindow.document.getElementsByClassName('mask')[0];
??? var th = document.getElementById('courseframe').contentWindow.document.getElementsByClassName('th')[1].children[0];
??? var timer,i=1;
??? timer = setInterval(function(){
??????? if(mask && getStyle(mask,'display') === 'block'){
??????????? mask.lastElementChild.lastElementChild.click();
??????????? if(th){th.innerText = i++;}
??????? }
??? },500);
})();
轉(zhuǎn)載于:https://www.cnblogs.com/yxws/p/8605614.html
總結(jié)
- 上一篇: 搞懂 SynchronizationCo
- 下一篇: SSRF漏洞学习