Created
August 18, 2016 09:57
-
-
Save hletrd/c0520519cdb18596a8a1abf2e4345d57 to your computer and use it in GitHub Desktop.
Removing CAPTCHA from olleh.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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