Voca Test Cheat Mode7

allzol

  1. // ==UserScript==
  2. // @name Voca Test Cheat Mode7
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description allzol
  6. // @author You
  7. // @match https://chamstudyland.com/vokok/desktop/login.php
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=chamstudyland.com
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. // Your code here...
  16. function login1() {
  17. var id = $("#id").val();
  18. var pw = $("#pw").val();
  19.  
  20. $.get('../../cham_admin/cham_login_check.php?id='+id+'&pass='+pw, function(result){
  21. if(result=="<"){
  22. alert("아이디와 비밀번호를 다시 확인해주세요.");
  23. }else if(false){
  24. alert(result.slice(4));
  25. }else{
  26. var current_url = document.location.href;
  27. if(current_url.includes("develop")){
  28. $.post('../lib/update_data.php?type=login_develop&config='+id, function(result){});
  29. }else{
  30. $.post('../lib/update_data.php?type=login&config='+id, function(result){});
  31. }
  32. // if(id='tony8795') id='yyyy';
  33. // alert(url);
  34. $.get('../lib/set_login_session.php?user_id='+id, function(result){
  35. location.href = url;
  36. });
  37. }
  38. }, 'text');
  39. }
  40. window.login = login1;
  41. })();