GeoCheck auto Captcha

Automagicly fills in the Captcha for GeoCheck

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         GeoCheck auto Captcha
// @namespace    http://technetium.be
// @version      1.3.3
// @description  Automagicly fills in the Captcha for GeoCheck
// @author       Toni Cornelissen ([email protected])
// @match        *://*.geocheck.org/geo_inputchkcoord.php*
// @match        *://*.geotjek.dk/geo_inputchkcoord.php*
// @grant        none
// ==/UserScript==

(function() {
	function captcha() {
		if (!hex_md5) { window.setTimeout(captcha, 103); return }
		var i = -1;
		var md5 = document.getElementsByName('geoform')[0].outerHTML.match(/validateChkCoordsForm\(this,.*?(\w{32})/)[1];
		while(hex_md5(("0000"+(++i)).slice(-5)) !== md5);
		document.getElementsByName('usercaptcha')[0].type = 'text';
		document.getElementsByName('usercaptcha')[0].value = ("0000"+i).slice(-5);
	}
	captcha();
})();