教务系统跳过等待

华南师范大学教务系统自动跳过5秒等待和输入账号密码

目前為 2021-07-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         教务系统跳过等待
// @namespace    https://jkey104.gitee.io/
// @version      1.0
// @description  华南师范大学教务系统自动跳过5秒等待和输入账号密码
// @author       Jkey
// @match        https://jwxt.scnu.edu.cn/xtgl/login_slogin.html
// @match        https://jwxt.scnu.edu.cn/xtgl/index_initMenu.html
// @match        https://jwxt.scnu.edu.cn/xtgl/index_initMenu.html?jsdm=xs*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 功能设置
    var isAutoFill = false; // 自动填充功能
    var isAutoPass = true; // 跳过等待功能

    //在此处设置账号密码
    let account = '';
    let password = '';

    var localAddress = location.href;

    if (isAutoFill && localAddress.indexOf("login") > -1){
        autoFill();
    }
    else if(isAutoPass && localAddress.indexOf("initMenu") > -1){
        let btn = document.getElementById("btn_yd");
        if(btn){
            autoPass();
        }
    }

    function autoFill(){
        console.log('自动填充帐号密码');
        document.getElementById("yhm").value=account;
        document.getElementById("mm").value=password;
    }

    function autoPass(){
        console.log('自动跳过等待');
        //更新学业预警确认状态为已确认
        //jQuery.ajax({
        //    url:_path+'/xtgl/login_cxGxqrzt.html',
        //    data: {"xyyjtxb_id":$("#xyyjtxb_id").val(),"czdm":$("#czdm").val()},
        //    async: false,
        //    type: "post",
        //    datatype: "json",
        //    success	: function(data){
         //   }
        //});
        //全局文档添加参数
        //加载功能主页:且添加不再进入提示信息页面的标记字段
        window.location.href = _path+'/xtgl/login_loginIndex.html';
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址