SCUT Authentication auto login

For sso.scut.edu.cn auto login

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 or Violentmonkey 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 Authentication auto login
// @name:zh-TW   華南理工自動登入
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  For sso.scut.edu.cn auto login
// @description:zh-TW  華南理工統一身分認證自動登入
// @author       A scut student
// @match        *://sso.scut.edu.cn/cas/*
// @grant        none
// ==/UserScript==
var delayInMilliseconds = 200;

(function () {
    'use strict';
console.warn("scut login start")
  

  setInterval(clickConfirm, delayInMilliseconds);
 
})();

function clickConfirm() {
    'use strict';
    var elements2 = document.getElementsByClassName("login_box_landing_btn");
    for(var i = 0; i < elements2.length; i++) {
        try {
            var element = elements2[i];
            if(true) {
                element.click();
                console.warn("clicked!");
                break;
            }
        }
        catch(e){}
    }
}