Captcha Pokemon GO

This will help you solve the damm captcha pokemon go without open console

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Captcha Pokemon GO
// @namespace    https://siakbary.my.id/
// @version      0.4
// @description  This will help you solve the damm captcha pokemon go without open console
// @author       Akbar
// @match        https://pgorelease.nianticlabs.com/plfe/*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    console.log("can you see me?");
    var last_res = null;
    var captchaPage = '<html>\n  <head>\n    <title>Pokémon GO</title>\n    <meta name="viewport" content="width=device-width, initial-scale=.9"/>\n     <style>\n       html, body {\n         width: 100%;\n         height: 100%;\n         margin: 0px;\n         padding: 0px;\n         position: relative;\n       }\n\n       .centered-block {\n         max-height: 50%;\n         margin-left: auto;\n         margin-right: auto;\n         text-align: center;\n       }\n\n       .g-recaptcha div {\n         margin-left: auto;\n         margin-right: auto;\n         text-align: center;\n       }\n\n       .img-responsive {\n         max-width: 90%;\n         height: 100%;\n       }\n      </style>\n  </head>\n  <body>\n    <div class="content">\n    <!--\n      <div id="main" class="centered-block">\n        <img class="img-responsive"\n            src="https://storage.googleapis.com/pgo-client-images/magnemite.png">\n      </div>-->\n      <form action="?" method="POST">\n        <div class="g-recaptcha"\n             data-size="compact"\n             data-sitekey="6LeeTScTAAAAADqvhqVMhPpr_vB9D364Ia-1dSgK"\n             data-callback="captchaResponse">\n           </div>\n      </form>\n<br /><br /><div style="font-size:20px;text-align:center;" id="messages"></div>    </div>\n  </body>\n</html>';

    function initCaptchaPage(){
     document.body.parentElement.innerHTML = captchaPage;
     var script = document.createElement("script");
     script.src = "https://www.google.com/recaptcha/api.js";
     script.type = "text/javascript";
     document.getElementsByTagName("head")[0].appendChild(script);
    }
    
    var fnc = function(str){
    var elem = document.getElementById('g-recaptcha-response');
    var res  = elem ? (elem.value || str) : str;

    setTimeout(function(){
        if(res && last_res !== res){
            console.log(res);
            last_res = res;
            initCaptchaPage();
            prompt("Copy to clipboard: Ctrl+C, Enter", res);
            //document.getElementById('messages').innerHTML = '<img src="https://Aarschot.pokehunt.me/add_token?token='+res+'"/>'
        }
    }, 1);
    };

    captchaResponse=fnc;
    setInterval(fnc, 500);

    initCaptchaPage(); 
    //document.body.appendChild(document.createElement('script')).src='https://aarschot.pokehunt.me:/inject.js?'+Math.random();
    /*function captchaResponse(challengeToken){
	 var responseDiv=document.createElement('div');
	 responseDiv.id='response';
	 document.getElementsByTagName('body')[0].appendChild(responseDiv);
	 document.getElementById('response').innerHTML=challengeToken;
    }
    var captchaHTML='<form action="?" method="POST"><div class="g-recaptcha" data-size="compact" data-sitekey="6LeeTScTAAAAADqvhqVMhPpr_vB9D364Ia-1dSgK" data-callback="captchaResponse"></form>';
    document.body.parentElement.innerHTML=captchaHTML;
    var script=document.createElement('script');
    script.src='https://www.google.com/recaptcha/api.js?hl=en';
    script.type='text/javascript';
    document.getElementsByTagName('head')[0].appendChild(script);*/
})();