Greasy Fork 支持简体中文。

海西教育网研修平台自动刷验证码

海西教育网研修平台自动刷验证码123

// ==UserScript==
// @name         海西教育网研修平台自动刷验证码
// @namespace    tai
// @version      0.3
// @description  海西教育网研修平台自动刷验证码123
// @author       nickTWO
// @license GPLv3
// @match        *://hxfd2022.stu.t-px.cn/*
// @icon         http://hxha2022.stu.t-px.cn/resources/images/student/courseThemeS.png
// @grant        none
// @connect  hxfd2022.stu.t-px.cn/
// ==/UserScript==

(function() {
    'use strict';
    function inputCode(){
        var codespan = document.getElementById("codespan")
       if(codespan !== null ){
           var code = document.getElementById("codespan").textContent;
           console.log(code);
           document.getElementById("code").value = code;
           document.querySelector("a.layui-layer-btn0").click();
       }
    }
    setInterval(inputCode,3000);
})();