Test_Automatic Check-in

Test_自动签到_防止原作者删库

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Test_Automatic Check-in
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Test_自动签到_防止原作者删库
// @author       Jack Ou
// @match        *www.hifini.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

(function()
 {
    function enterCourse()
    {
        console.log("自动签到");
        var dom = document.getElementById('sg_sign');
        if (!!dom)
        {
            console.log("找到签到按钮");
            var sign = document.getElementById('sign');
            if (!!sign)
            {
                var text = sign.innerText;
                console.log("文字:"+text);
                if(text=="已签"){
                    console.log("已经签到");
                }else{
                    dom.click();
                }
            }
        }}

    enterCourse();
})();