skip checkcode

skip the checkcode make me happy

Versión del día 22/4/2020. Echa un vistazo a la versión más reciente.

// ==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...
})();