Greasy Fork

破解需要微信扫码获取验证码的网站

IT1352网站

当前为 2022-09-16 提交的版本,查看 最新版本

// ==UserScript==
// @name         破解需要微信扫码获取验证码的网站
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  IT1352网站
// @author       You
// @match        https://www.it1352.com/*.html
// @icon         https://www.google.com/s2/favicons?sz=64&domain=it1352.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    setTimeout(() =>{
        window.chk = () => {
    var code = $('#txtcode').val();
    var id = 1;
    if (code == '') {
        return chkerror();
    }
    $.get('/Home/Check?aid=' + id + '&code=' + code, function (r) {
        try {
            var result = JSON.parse(r);
            if (result == '') {
                var status = result.status;
                if (status == 0) {
                    $.cookie('olduser', '1', { domain: 'it1352.com', expires: 15 });
                    $('#chkinfo').fadeIn(100);
                    $('#chkinfo').html('登录成功,请稍后..').addClass('tipok').removeClass('tiperr');
                    setTimeout("$('#pop').fadeOut();", 1000);
                    window.location.reload();
                } else {
                    throw '';
                }
            }
        } catch {
            return chkerror();
        }
    });
}
    },5000)
    // Your code here...
})();