Skip to content

Instantly share code, notes, and snippets.

@hletrd
Created August 18, 2016 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hletrd/c0520519cdb18596a8a1abf2e4345d57 to your computer and use it in GitHub Desktop.
Save hletrd/c0520519cdb18596a8a1abf2e4345d57 to your computer and use it in GitHub Desktop.
Removing CAPTCHA from olleh.com
// ==UserScript==
// @name Olleh Captcha Remover
// @namespace olleh
// @version 0.1
// @description Removed Captcha
// @author HLETRD
// @match login.olleh.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.getElementsByTagName("form")[0].setAttribute('action', 'https://login.olleh.com/wamui/AthMobile.do?mRt=http%3A//www.olleh.com/%23');
try{document.getElementsByClassName("ollehMainUMLoginCaptchaView")[0].remove();}catch(e){}
try{document.getElementsByClassName("ollehMainUMLoginCaptchaInput")[0].remove();}catch(e){}
try{document.getElementsByClassName("SdpArea")[0].remove();}catch(e){}
try{document.getElementById("captcha").remove();}catch(e){}
validate = function(){saveId();loginSubmit.disabled = true;try{document.getElementById("athWebOllehSubV2").submit();}catch(e){}try{document.getElementById("authWebOlleh").submit();
}catch(e){}};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment