法宣在线10分钟自动结束学习

10分钟自动结束学习

Per 07-12-2021. Zie de nieuwste versie.

// ==UserScript==
// @name         法宣在线10分钟自动结束学习
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  10分钟自动结束学习
// @author       You
// @match        *://www.faxuanyun.com/sps/courseware/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    setInterval(function(){
        var time = $('#ware_time_num').text().split(':');
        if(time[1]>=10)
        {
            $('#exitCourse').get(0).click();
            $('#exitBtnDiv > a:nth-child(2)').click();
        }

        var timer = $('#timer').text().split(':');
        if(timer[1]>=10)
        {
            $('#mainyemian2 > div.lessoncontainer > div.timebtn.clear > a').get(0).click();
            $('#popwinConfirm.tanchu_btn01').click();
        }
    },1000);

})();