Clixsatoshi

Sign up: https://anon.to/2SihAt - Login, Click "View PTC Ads", Bot starts, sometime you have to complete a recaptcha code

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!)

Advertisement:

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!)

Advertisement:

// ==UserScript==
// @name         Clixsatoshi
// @icon         http://clixsatoshi.com/favicon.ico
// @namespace    helpercoins.blogspot.com
// @version      1
// @description  Sign up: https://anon.to/2SihAt - Login, Click "View PTC Ads", Bot starts, sometime you have to complete a recaptcha code
// @author       Helpercoins.blogspot.com
// @match        http://clixsatoshi.com/*
// @grant        window.close
// ==/UserScript==

(function() {

    if(window.location.href.indexOf("view") > -1) {
        var i = setInterval( function() {
            if(jQuery('.progress-bar').hasClass('progress-bar-success') || document.documentElement.innerText.indexOf('You have closed the CAPTCHA modal, please reload the advertisement.') > -1 || document.documentElement.innerText.indexOf('Invalid CAPTCHA code.') > -1 || document.documentElement.innerText.indexOf('Congratulations!') > -1 || document.documentElement.innerText.indexOf('You already viewed this ad in the last 24h...') > -1 || document.documentElement.innerText.indexOf('Invalid token!') > -1) {
                setTimeout( function(){
                    location.href = "http://clixsatoshi.com/ads";
                }, 1000);
            } else if(document.documentElement.innerText.indexOf('Awaiting captcha...') > -1) {
                var foCus =  jQuery('.form-control');
                if(foCus.length > -1) {
                    setTimeout( function() {
                        foCus.focus();
                    }, 1000);
                }
                clearInterval(i);
                setInterval( function() {
                    if(jQuery('.progress-bar').hasClass('progress-bar-success') || document.documentElement.innerText.indexOf('You have closed the CAPTCHA modal, please reload the advertisement.') > -1 || document.documentElement.innerText.indexOf('Invalid CAPTCHA code.') > -1 || document.documentElement.innerText.indexOf('Congratulations!') > -1 || document.documentElement.innerText.indexOf('You already viewed this ad in the last 24h...') > -1 || document.documentElement.innerText.indexOf('Invalid token!') > -1) {
                        setTimeout( function(){
                            location.href = "http://clixsatoshi.com/ads";
                        }, 1000);
                    }
                }, 1000);
            }
        }, 1000);
    } else if(window.location.href.indexOf("ads") > -1) {
        var ad =  $('.col-md-8').find('.viewads-ad').not('.visited-link').find('.viewads-row-title').find('a');

        if(ad.length !== 0) {
            console.log(ad.first().attr('href'));
            var win = window.open(ad.first().attr('href'));
            window.close();
        }
    }

})();