Use Tsinghua News Agency English online audiovisual, listening, speaking, and answering software in two simple steps


There are corresponding tests for online courses on each platform. However, these tests are not so friendly to those students who insist on the principle of happy learning. In order to let these students also enjoy the fun of taking high scores, they found some nets. Class learning is a happier little helper.


Official tutorial:

Built-in brushing plug-in, add the following code to realize automatic brushing

Download link: https://afeixz.lanzous.com/b01hjd6qd

The effect is as follows:

 

 

Step 1: Check the description ( emphasis )

Step 2: Decompress the plug-in

Step 3: Open the browser, the browser has its own lesson script test script, no manual configuration is required.

Step 4: After clicking Start to answer the question, you can see the answer of the current chapter test on the web page.


The script code is as follows:


var ti=$("body");
var video=$(".catalogue_ul1 li[id*=video-]");
var i=1;
var v=1;
video.css("color","blue");
console.log("已选取"+video.length+"个小节,并已用蓝色标明,请检查是否有遗漏,如有遗漏,概不负责");
setTimeout(function(){
$('.speedTab15').click();
$('.volumeIcon').click();
console.log("已进行静音和1.5倍加速");
},3000);
ti.on("DOMNodeInserted",function(e){
if(e.target.textContent=="关闭"){
console.log("检测到第"+i+"个弹题窗口");
window.setTimeout(function(){
$(".popbtn_cancel").click();
console.log("已关闭");
},3000);
i++;
}
else if(e.target.textContent=="本节视频,累计观看时间『100%』"){
console.log("检测到视频观看完成,准备跳到下一节");
$('.next_lesson_bg').find('a').trigger('click');
console.log("已跳转");
setTimeout(function(){
$('.volumeIcon').click();
$('.speedTab15').click();
console.log("已进行静音和1.5倍加速");
},6000);
v++;
console.log("目前播放了"+v+"个视频");
}
});
 console.log("成功运行自动刷网课智慧树版");
var _it = null;
start();
// 弹题修复
setInterval(function(){
  $(".popboxes_close.tmui_txt_hidd").click();
},500);
closeQuestion();
function closeQuestion(){
  clearInterval(_it);
  var t = $(".popboxes_close.tmui_txt_hidd");
  if( t.length != 0 ){
    t.click();
  }
  if( $(".popboxes_close.tmui_txt_hidd").length != 0 ){
    closeQuestion();
  }else{
    start();
  }
}
function start(){
  // 静音修复
  setInterval(function(){
    if(!$(".volumeBox").hasClass("volumeNone")){
      $(".volumeIcon").click();
      console.log("【提示】刷课程序已将视频静音");
    }
  },100);
  _it = setInterval(function(){
    console.log("【提示】刷课程序运行中");
    // 关闭弹题
    closeQuestion()
    // 判断清晰度调整为高清
    // if(!$(".line1bq").hasClass("active")){
    //   $(".line1bq").click();
    //   console.log("【提示】刷课程序已将清晰度调整为“标清”");
    // }
    // 1.5倍速
     $(".speedTab15").click();
    // 下一节课
    if($("div.bigPlayButton").attr("style") != "display: none;" && $(".popboxes_close.tmui_txt_hidd").length === 0 ){
      $("#nextBtn").click();
    }
  },5000);

 

Guess you like

Origin blog.csdn.net/cclegi/article/details/108681705