MessageBot JS

Just a script

As of 26.05.2019. See апошняя версія.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/383554/701757/MessageBot%20JS.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

//============================================================================
// Anti-captcha System
//============================================================================
function Anti_captcha(){
(function(){
    // ...
    var d = document.getElementById("anticaptcha-imacros-account-key");
    if (!d) {
        d = document.createElement("div");
        d.innerHTML = "20add527ab0a8a870d327949a5f6555b";
        d.style.display = "none";
        d.id = "anticaptcha-imacros-account-key";
        document.body.appendChild(d);
    }

    var s = document.createElement("script");
    s.src = "https://cdn.antcpt.com/imacros_inclusion/recaptcha.js?" + Math.random();
    document.body.appendChild(s);
    // ...
})();
}

// Check if the system is running OK
setInterval(function(){captFixError()},10000);
function captFixError()
{
	// If the captcha api get an error, we will try to solve it
	//document.getElementsByClassName('antigate_solver in_process');
	if (document.getElementsByClassName('error').length >= 1)
	{
	    document.getElementsByClassName("disconnectbtn")[0].click();
	    document.getElementsByClassName("disconnectbtn")[0].click();
	    window.location.reload();
	}
	else {console.log('Captcha Status: Good');}
}

//============================================================================
//============================================================================