Bitverts.io

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Bitverts.io
// @icon         http://bitverts.io/template/default/assets/img/favicons/favicon.png
// @namespace    helpercoins.blogspot.com
// @version      1
// @description  Sign up: https://anon.to/IQDshu - Login, Click "View PTC Ads", Bot starts, sometime you have to complete a recaptcha code
// @author       Helpercoins.blogspot.com
// @match        http://bitverts.io/*
// ==/UserScript==

(function() {
    'use strict';
    
    // bitcoin = 1, ethereum = 2, litecoin = 3, bitcoin cash = 4
    var coin = 3;  // change the number to the coin
    if(window.location.href.indexOf("see?ptc&v=") > -1) {
        var i = setInterval( function() {
            if(document.documentElement.innerText.indexOf('Success') > -1 || document.documentElement.innerText.indexOf('Error! Invalid Captcha.') > -1) {
                setTimeout( function(){
                    location.href = "http://bitverts.io/see-ads?b=" + coin;
                }, 1000);
            } else if(document.documentElement.innerText.indexOf('Please complete the captcha before you can get credited.') > -1) {
                alert('Captcha');
                clearInterval(i);
                setInterval( function() {
                    if(document.documentElement.innerText.indexOf('Success') > -1 || document.documentElement.innerText.indexOf('Error! Invalid Captcha.') > -1) {
                        setTimeout( function(){
                            location.href = "http://bitverts.io/see-ads?b=" + coin;
                        }, 1000);
                    }
                }, 1000);
            }
        }, 1000);
    } else if(window.location.href.indexOf("see-ads") > -1) {
        var loc = parseInt(window.location.href.split('=')[1]);
        if(loc !== coin) {
            location.href = "http://bitverts.io/see-ads?b=" + coin;
        } else {
            var ads =  $('.block-content.block-content-full').find('[id*=ad].col-md-3').not('#ad').find('a').not('.fc-state-disabled');

            if(ads.length !== 0) {
                ads.first().addClass('fc-state-disabled');
                console.log(ads.first().attr('href'));
                var win = window.open(ads.first().attr('href'));
                window.close();
            } else {
                alert('change the coin in the script');
            }
        }
    }

})();