标签:style rtl war i++ height less func key isp
PC机,使用chrome内核的浏览器。
1登录系统:
2点击前往学习
③鼠标拖选下面的代码,Ctrl + c复制如下代码:
window.confirm=function(){return true};var lesson=$(".lesson > .cont .item");var noDones=[];for(i=0;i<lesson.length;i++){var link=lesson.eq(i).find(".link");if(link.text()!="已完成"){noDones.push(link)}}function startLesson(lessonId,coursewareId,lessonkey,tclessonId){$("body").append(‘<div id="confirmOverlay" style="display:none;"><div style="position: absolute;width:80%; height:80%;top:10%;left:10%;" ><iframe src="" width="100%" height="100%" name="lesson_show" id="lesson_show"></iframe></div></div>‘);var url="http://www.gxpx365.com:80/app/lms/student/Learn/enter.do?lessonId="+lessonId+"&coursewareId="+coursewareId+"&lessonGkey="+lessonkey+"&tclessonId="+tclessonId+"&lessonOrigin=trainclass";$("#lesson_show").attr("src",url);$("#confirmOverlay").show();setTimeout(learning,10000)}if(noDones.length>0){var startPos=0;noDones[startPos].click()}else{alert("已完成所有课程学习")}var $video,gPeekInterval;function learning(){var lesson_show=$("#lesson_show").contents();$video=lesson_show.find("#contentFrame").contents().find("video")[0];gPeekInterval=setInterval(peekProc,500)}function peekProc(){if($video.readyState<3){$video.pause();return}else{$video.play()}remainSec=Math.round($video.duration-$video.currentTime);if(remainSec<1){startPos++;if(startPos<noDones.length){setTimeout($("#confirmOverlay").remove(),3000);setTimeout(noDones[startPos].click(),6000)}else{$("body").remove();setTimeout(window.location.reload(),2000)}clearInterval(gPeekInterval)}}; |
④转至2点开学习页面窗口,按“F12”点击“Console”,右键粘贴上面复制的代码,回车!
⑤请保持页面激活状态,代码将自动学习至完成。(如果页面不处于激活状态,将不能继续下一课程的学习)
标签:style rtl war i++ height less func key isp
原文地址:https://www.cnblogs.com/xygui/p/13265985.html