EBonus.gg Video lite

Click the next video button and the circles/bubbles coins automatically. It also skip the captcha!

目前為 2019-06-06 提交的版本,檢視 最新版本

// ==UserScript==
// @name         EBonus.gg Video lite
// @namespace    https://greasyfork.org/en/users/306626-charlescraft50
// @version      1.0
// @description  Click the next video button and the circles/bubbles coins automatically. It also skip the captcha!
// @author       CharlesCraft50
// @copyright    2019, CharlesCraft50 (https://openuserjs.org/users/CharlesCraft50)
// @license      MIT
// @include      https://ebonus.gg/*
// @match        https://www.google.com/recaptcha/api2/*
// @grant        GM_addStyle
// @require      http://code.jquery.com/jquery-3.4.1.min.js

// ==/UserScript==

$(document).ready(function(){
    GM_addStyle(`.dropdown-content{display:none;position:absolute;background-color:#f1f1f1;min-width:160px;overflow:auto;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);right:0;z-index:1}.dropdown-content span{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown-content span:hover{background-color:#ddd}.showdd {display: block;}`);
    //Functions

    function simulateClick(a) {
        var event = new MouseEvent('click');
        a.dispatchEvent(event);
    }

    window.ClickOnBubble = function(){
        if ($(".coins_popup.circle.adsbox").length > 0 || $('div.adsbox:contains("COINS")').length > 0) {
            setTimeout(function(){simulateClick(document.querySelector('.coins_popup.circle.adsbox'));}, 10);
        }
    };

    window.ClickNext = function(){
        if ($(".sweet-alert.showSweetAlert.visible").length > 0) {
            console.log("videos clicked");
            $(".confirm").click();
            setTimeout(function(){window.location.href = 'https://ebonus.gg/earn-coins/watch/';}, 5000);
        }
    };

    //Captcha Funtion
    window.captchaResolve = function(){
        var clickCheck = setInterval(function() {
            if (document.querySelectorAll('.recaptcha-checkbox-checkmark').length > 0) {
                clearInterval(clickCheck);
                document.querySelector('.recaptcha-checkbox-checkmark').click();
            } else {
                clearInterval(clickCheck);
            }
        }, 1000);
        setTimeout(function(){$('input[value="Continue"]').click();}, 10000);
    };

    setTimeout(captchaResolve, 1000);

    setTimeout(function(){window.location.href='https://ebonus.gg/earn-coins/watch';}, 120000);

    if($('p:contains("Please complete this captcha to continue watching videos.")').length > 0 || $('label[for="CAPTCHA"]').length > 0) {
        //Captcha Resolver
        //captchaResolve();
    } else {
        //Start
        var coinsclicker = setInterval(function() {
            ClickNext();
            ClickOnBubble();
        }, 1000);
        $('li:contains("144")').click();

        var muteVideo = setInterval(function(){
            if($('.vjs-mute-control[title="Mute"]').length > 0) {
               $('.vjs-mute-control').click();
            } else {
                clearInterval(muteVideo);
            }
        }, 1000);

        var playVideo = setInterval(function(){
            if($('.vjs-play-control.vjs-control.vjs-button[title="Play"]').length == 1) {
               $('.vjs-play-control.vjs-control.vjs-button').click();
            }
        }, 1000);
        setTimeout(function(){clearInterval(playVideo);}, 15000);
    }
});