AUTO-OPEN hCaptcha + reCaptcha

Auto clicks the recaptcha and hcaptcha - NOT SOLVING

< Feedback on AUTO-OPEN hCaptcha + reCaptcha

Review: OK - script works, but has bugs

§
Posted: 24-12-2022

It's work. fine.
I have juste one probleme. I couldn't creat neither localStorage nor Gm_value wehen the captcha is solved.
I tried A second time but it dosn't work too
let ComareHcCaptcha= "4";
const TimeSearchingCaptcha = "3000";
const HC_CHECK_BOX = "#checkbox";
const HC_ARIA_CHECKED = "aria-checked";

var hc_checkboxInterval = setInterval(function() {
if((document.querySelector(HC_CHECK_BOX) !== null)){
if (document.querySelector(HC_CHECK_BOX).getAttribute(HC_ARIA_CHECKED) == "true") {
// GM_setValue('Hcpcha', 'SOLVED');
ComareHcCaptcha='2'
console.log("HC SOLVED");
clearInterval(hc_checkboxInterval);
}
}
}, TimeSearchingCaptcha );

var aaaaaa = setInterval(function() {if((ComareHcCaptcha !== '4')){

//document.querySelector("#em_tr > div.col-sm-6 > input").click();
localStorage.setItem('Hcpcha','Solved');
console.log('Hcpcha Created');
clearInterval(aaaaaa)}},1000);

winexecTác giả
§
Posted: 27-12-2022
Edited: 27-12-2022

You need add some checking function for response AND add match rule for your site

var res_check = setInterval( function() {
    if( document.querySelector(".h-captcha") ) {
        if( document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response").length > 0 ){
            clearInterval( res_check );

            console.log( document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response") );
            localStorage.setItem("hcaptcha_response", document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response") );
            // document.querySelector("#my_selector").click();

        }
    }
}, 3000);

Post reply

Đăng nhập để bình luận