miller

mac

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/437476/1001491/miller.js

You will need to install an extension such as Tampermonkey, Greasemonkey 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 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.

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

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

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!)

(function() {
    'use strict';
 //console.log('ceshi')
    // Your code here...
    function jxbf(){
    if(document.getElementsByClassName('btn-ok btn').length){
    document.getElementsByClassName('btn-ok btn')[0].click()
        console.log('点击成功')
    };
    if(document.getElementsByClassName('btn')[0].innerText=="继续学习"){
       window.close()
       }
       };
setInterval(jxbf, 15000);
//点开未完成-10分钟一次
    function wwc(){
        let x = document.getElementsByClassName('ms-train-state')
       for(var i = 0;i < x.length;i++ ){
        if(x[i].innerText=="未完成"){
            console.log(i)
        document.getElementsByClassName('m-bottom mb title-row pointer title-font')[i].click()
            location.reload();
            break;}
        };
    };
  setInterval(wwc, 600000);
})();