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

10分钟自动结束学习

目前为 2022-09-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         法宣在线10分钟自动结束学习
// @namespace    http://tampermonkey.net/
// @version      0.1.4
// @description  10分钟自动结束学习
// @author       AN drew
// @match        *://*.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 && $('#popwin').length==0)
        {
            $('#exitCourse').get(0).click();
            $('#exitBtnDiv > a:nth-child(2)').click();
        }

        var timer = $('#timer').text().split(':');
        if(timer[1]>=10 && $('#popwin').length==0)
        {
            $('#mainyemian2 > div.lessoncontainer > div.timebtn.clear > a').get(0).click();
            $('#popwinConfirm.tanchu_btn01').click();
        }
/*
        if($('#popwin').length>0)
        {
            $('#exitBtnDiv > a:nth-child(2)').click();
            $('#popwinConfirm.tanchu_btn01').click();
        }
*/
    },100);
 
})();