教师十x五跳过打卡ttcdw.cn

每隔一分钟模拟一次点击

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         教师十x五跳过打卡ttcdw.cn
// @namespace    http://tampermonkey.net/
// @version      2024-11-20
// @description  每隔一分钟模拟一次点击
// @author       6add
// @match        https://www.ttcdw.cn/p/course/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=ttcdw.cn
// @grant        none
// @license MIT
// ==/UserScript==


(function() {
    'use strict';

    function clickBtn() {
        //console.log("check")
        // 检查页面中是否存在id为layui-layer1的元素
        var layer = document.getElementById('layui-layer1');
        //console.log(layer)
        if (layer) {
        // 如果存在,查找id为comfirmClock的按钮元素
            var button = document.getElementById('comfirmClock');
            //console.log(button)
            if (button) {
            // 如果按钮存在,模拟点击事件
                button.click();
            }
        }
    }

    setInterval(clickBtn,1000*60)

})();