🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

SCUT iam ok auto click

For scut iam ok auto click

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

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         SCUT iam ok auto click
// @name:zh-TW   華南理工報平安自動點擊
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  For scut iam ok auto click
// @description:zh-TW  華南理工 iam ok 保平安自動點擊
// @author       A scut student
// @match        *://iamok.scut.edu.cn/iamok/web/mobile/*
// @grant        none
// ==/UserScript==
var delayInMilliseconds = 200;
var waitInMili = 5000;
(function () {
    'use strict';
console.warn("scut iam ok start")

  setTimeout(function(){clickConfirm();}, waitInMili);
  //setInterval(clickConfirm,delayInMilliseconds);
  
})();

function clickConfirm() {
    'use strict';
    var elements2 = document.getElementsByClassName("btn");
console.warn(elements2.length);
    for(var i = 0; i < elements2.length; i++) {
        try {
            var element = elements2[i];
 console.warn(element.innerHTML);


            if(element.innerHTML == " 一切安好,一键上报 ") {
                element.click();
                console.warn("clicked!");
                break;
            }
        }
        catch(e){}
    }
}