GeoCheck auto Captcha

Automagicly fills in the Captcha for GeoCheck

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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();
})();