New script - gzteacher.com

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

  1. // ==UserScript==
  2. // @name New script - gzteacher.com
  3. // @namespace Violentmonkey Scripts
  4. // @match http://study.gzteacher.com/study/study
  5. // @grant none
  6. // @version 1.0
  7. // @author -
  8. // @description 2021/10/27 下午2:59:30
  9. // ==/UserScript==
  10.  
  11. function checkNext(){
  12. console.log("checkNext...");
  13. var aa = document.getElementsByClassName("ant-modal-content");
  14. if(aa && aa.length>0){
  15. if(aa[0].innerText.indexOf('已完成')>0){
  16. // 下一个
  17. console.log("playNext...");
  18. document.getElementsByClassName("ant-btn")[2].click();
  19. }
  20. }
  21. }
  22.  
  23. console.log("auto...");
  24. setInterval(checkNext, 5000);
  25.