skip checkcode

skip the checkcode make me happy

Verze ze dne 22. 04. 2020. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         skip checkcode
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  skip the checkcode make me happy
// @author       JunYou

// @include      /ecsa.ntcu.edu.tw*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
     function dooLogin() {


        console.log('is work')

 }
console.log('script work')
document.getElementById('IsLogin').value = '';
document.getElementById('ReBuildTheCheckCode').value = 'Y';

    var stockBtns = document.querySelector("#login_btn");
    var oldClick = stockBtns.getAttribute ("onclick");
    stockBtns.removeAttribute ("onclick");
    stockBtns.setAttribute ("type",'submit');
    document.querySelector('#txtCheckCode').setAttribute('placeholder','小孩子才輸驗證碼')
    document.querySelector('#txtCheckCode').setAttribute('readOnly','true')
    document.querySelector('#ImgCheckCode').remove();
    document.querySelector("#login_btn").onclick= function(){
       document.getElementById('IsLogin').value = 'Y';
       document.getElementById('StartCheck').value = '';
       document.getElementById('ReBuildTheCheckCode').value = '';
       myform.action = 'login.aspx';
       myform.target = '_self';
       myform.submit();
    }

    // Your code here...
})();