netauth Chula

check accept agreement, auto focus captcha and submit

  1. // ==UserScript==
  2. // @name netauth Chula
  3. // @description check accept agreement, auto focus captcha and submit
  4. // @include https://netauth.it.chula.ac.th/user/Logon.do
  5. // @version 1.1
  6. // @grant none
  7. // @namespace https://greasyfork.org/users/4947
  8. // ==/UserScript==
  9.  
  10. checkY.checked=true;
  11. var verificationCode=document.getElementsByName('verificationCode')[0];
  12. verificationCode.addEventListener('input',function(){
  13. verificationCode.value.length==5 && document.forms[0].submit();
  14. },true);
  15. verificationCode.focus();
  16. verificationCode.autocomplete='off';