Greasy Fork

Greasy Fork is available in English.

Qaptcha pass

Pass captcha

当前为 2017-09-11 提交的版本,查看 最新版本

// ==UserScript==
// @name        Qaptcha pass
// @namespace   http://greasyfork.icu/fr/users/11667-hoax017
// @description Pass captcha
// @include     *
// @version     1
// @grant       none
// @require     https://code.jquery.com/jquery-2.1.3.min.js
// ==/UserScript==
$ = jQuery.noConflict(true);
jQuery(document).ready(function($) {
	var name = $('div.QapTcha input[type="hidden"]').attr('name');
	if (name) {
		$.ajax({
				type:"POST",
				url:"/php/Qaptcha.jquery.php",
				data:"qaptcha_key="+name+"&action=qaptcha",
				cache:false,
				success:function(data){
					$('div.QapTcha input[type="hidden"]').val('');
					$('div.QapTcha').parent().find('input[type="submit"]').click();
				}
		});
	}
});