Created
January 29, 2018 20:26
-
-
Save xatsune07/309ab89e7b783d2f33d3cef1d967ca13 to your computer and use it in GitHub Desktop.
Script
This file contains hidden or 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 Captcha | |
// @description <3 anime | |
// @include https://2ch.hk/* | |
// @include http://2ch.hk/* | |
// @version 1.0.2 | |
// @grant none | |
// @namespace mynigga | |
// ==/UserScript== | |
$(document).ready(function () { | |
window.nocaptchaOptions = {publicKey: "033bbbe453f794e3cb39f856277cd3ec"}; | |
var nocaptchascript = document.createElement('script'); | |
nocaptchascript.src = 'https://api-nocaptcha.mail.ru/nocaptcha.js'; | |
document.body.appendChild(nocaptchascript); | |
nocaptchascript.onload = function() { | |
nocaptcha.create('#nocaptcha1', {hidden: false, tabindex: 2}); | |
nocaptcha.verify('#nocaptcha1'); | |
nocaptcha.create('#nocaptcha2', {hidden: false, tabindex: 2}); | |
nocaptcha.verify('#nocaptcha2'); | |
} | |
window.requestCaptchaKey = function(){ return false; }; | |
window.loadCaptcha = function(){ return false; }; | |
$('input[name="captcha_type"]').val('mailru'); | |
$('#postform .captcha-box').empty().append('<div id="nocaptcha1"></div>'); | |
$('#qr-postform .captcha-box').empty().append('<div id="nocaptcha2"></div>'); | |
$('#qr-submit,#submit').attr('onClick','SendClickHandle();'); | |
}); | |
window.SendClickHandle = function() { | |
nocaptcha.reset('#nocaptcha1'); | |
nocaptcha.verify('#nocaptcha1'); | |
nocaptcha.reset('#nocaptcha2'); | |
nocaptcha.verify('#nocaptcha2'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment