Test Automatic Check-in

Test 自动签到

Version vom 29.09.2024. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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

// ==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();
})();