New script - gzteacher.com

2021/10/27 下午2:59:30

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        New script - gzteacher.com
// @namespace   Violentmonkey Scripts
// @match       http://study.gzteacher.com/study/study
// @grant       none
// @version     1.0
// @author      -
// @description 2021/10/27 下午2:59:30
// ==/UserScript==

function checkNext(){
  console.log("checkNext...");
  var aa = document.getElementsByClassName("ant-modal-content");
  if(aa && aa.length>0){
    if(aa[0].innerText.indexOf('已完成')>0){    
      // 下一个
      console.log("playNext...");
      document.getElementsByClassName("ant-btn")[2].click();
    }
  }
}

 
console.log("auto...");
setInterval(checkNext, 5000);