Skip to content

Instantly share code, notes, and snippets.

@xatsune07
Created January 29, 2018 20:26
Show Gist options
  • Save xatsune07/309ab89e7b783d2f33d3cef1d967ca13 to your computer and use it in GitHub Desktop.
Save xatsune07/309ab89e7b783d2f33d3cef1d967ca13 to your computer and use it in GitHub Desktop.
Script
// ==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