Fuck ReCaptcha

Reveal Captcha Token for Complete ReCaptchas!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Fuck ReCaptcha
// @namespace    http://www.nextgenupdate.com/forums/members/155496-sloth.html
// @version      1.1
// @description  Reveal Captcha Token for Complete ReCaptchas!
// @author       Sloth - NGU
// @match      *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var reCapTimer = setInterval(fuckReCaptcha, 1000);
})();
function fuckReCaptcha() {
       if(document.getElementsByClassName('g-recaptcha').length > 0) {
           if(document.getElementById('fuckReCaptchaButton') === null) {
               var head  = document.getElementsByTagName('head')[0];
               var link  = document.createElement('link');
               link.id   = 'bootstrapcss';
               link.rel  = 'stylesheet';
               link.type = 'text/css';
               link.href = 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css';
               link.media = 'all';
               head.appendChild(link);
               var button = document.createElement('input');
               button.value = 'Reload ReCaptcha (To get new token)';
               button.id = 'fuckReCaptchaButton';
               button.style = 'width: 304px;';
               button.onclick = 'reloadReCaptcha()';
               document.getElementsByClassName('g-recaptcha')[0].prepend(button);
               document.getElementById('fuckReCaptchaButton').classList.add('btn');
               document.getElementById('fuckReCaptchaButton').classList.add('btn-danger');
               button.addEventListener('click', reloadReCaptcha);
           }
           document.getElementById('g-recaptcha-response').style.display = '';
           document.getElementById('g-recaptcha-response').style.height = '100px';
           document.getElementById('g-recaptcha-response').style.position = 'absolute';
   }
}
function reloadReCaptcha() {
    document.getElementById('g-recaptcha-response').value = '';
    if(document.getElementsByClassName('g-recaptcha').length > 0) {
        document.getElementsByClassName('g-recaptcha')[0].getElementsByTagName('iframe')[0].src = document.getElementsByClassName('g-recaptcha')[0].getElementsByTagName('iframe')[0].src;
    }
    return false;
}