Skip to content

Instantly share code, notes, and snippets.

@venj
Created August 28, 2012 02:53
Show Gist options
  • Save venj/3494514 to your computer and use it in GitHub Desktop.
Save venj/3494514 to your computer and use it in GitHub Desktop.
auto input capcha for you.
// ==UserScript==
// @name aotucapcha
// @namespace http://218.90.160.85:9090/bustravelguide/default.aspx
// @description Auto enter capcha
// @include http://218.90.160.85:9090/bustravelguide/default.aspx
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener('DOMContentLoaded', function(){
// DOM ready.
var capchaStatus = document.getElementById("hidJudgeFlg").value
if (capchaStatus == 1) {
document.getElementById("txtRandom").value = document.getElementById("txtRandom_Std").value;
document.getElementById("linkBtnQuery").click();
}
Alert("Heell");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment