教师研修网学习外挂

自动挂机学习。

目前为 2020-10-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         教师研修网学习外挂
// @namespace    https://gf.qytechs.cn/zh-CN/users/41249-tantiancai
// @version      1.2
// @description  自动挂机学习。
// @author       Tantiancai
// @match        http://i.yanxiu.com/uft/course/*
// @grant        none
// ==/UserScript==
(function () {
    'use strict';

    function getUnsafeWindow() {
        if(this)
        {
            console.log(this);
            if (typeof(this.unsafeWindow) !== "undefined") {//Greasemonkey, Scriptish, Tampermonkey, etc.
                return this.unsafeWindow;
            } else if (typeof(unsafeWindow) !== "undefined" && this === window && unsafeWindow === window) {//Google Chrome natively
                var node = document.createElement("div");
                node.setAttribute("onclick", "return window;");
                return node.onclick();
            }else
            {
            }
        } else {//Opera, IE7Pro, etc.
            return window;
        }
    }
    var myUnsafeWindow = getUnsafeWindow();
    var doc = myUnsafeWindow.document;
    var processTimer = null;
    var cntRetry = 0;
	myUnsafeWindow.clearInterval(processTimer);
    processTimer = myUnsafeWindow.setInterval(TimeProcess, 10000);

    function TimeProcess()
    {
        if($('.clock-tip').css('display') != 'none')
        {
	        console.log('%c Click Tip', 'color:blue');
	        $('.clock-tip').click();
        }
    }

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址