payup

O amanha será tarde dmais !!!

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         payup
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  O amanha será tarde dmais !!!
// @author       keno venas
// @license      MIT   
// @match        https://payup.video/*
// @match        https://premiumbspot.blogspot.com/*
// @match        https://www.youtube.com/*
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @icon         https://www.google.com/s2/favicons?sz=64&domain=payup.video
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var botoesParaClicar = ['button.bg-blue4'];
    function clicarNosBotoes() {
        for (var i = 0; i < botoesParaClicar.length; i++) {
            var botao = document.querySelector(botoesParaClicar[i]);
            if (botao) {
                botao.click();
            }
        }
    }
    function isCaptchaChecked() {
        return grecaptcha && grecaptcha.getResponse();
    }
    var verificarCaptchaInterval = setInterval(function() {
        if (isCaptchaChecked()) {
            clearInterval(verificarCaptchaInterval);
            clicarNosBotoes();
        }
    }, 1000);
    var email = "seu [email protected]";
    var senha = "sua senha ";
    function preencherFormulario() {
        var emailInput = document.querySelector('.form-group:nth-child(1) > .form-control');
        var senhaInput = document.querySelector('.form-group:nth-child(2) > .form-control');

        if (emailInput && senhaInput) {
            emailInput.value = email;
            senhaInput.value = senha;
        }
    }
    window.onload = function() {
        preencherFormulario();
    };
    if (window.location.href === "https://payup.video/") {
        // Redireciona para a nova URL
        window.location.href = "https://payup.video/signin/";
    }
    if (window.location.href === "https://payup.video/dashboard/") {
        // Redireciona para a nova URL
        window.location.href = "https://payup.video/tasks/video/";
    }
    function verificaURL() {
        return window.location.href.startsWith('https://payup.video/tasks/video/');
    }
    function recarregarPagina() {
        if (verificaURL()) {
            setTimeout(function() {
                location.reload();
            }, 25000);
        }
    }
    function criarContador() {
        const contador = document.createElement('div');
        contador.style.position = 'fixed';
        contador.style.top = '10px';
        contador.style.right = '10px';
        contador.style.padding = '5px 10px';
        contador.style.background = 'blue';
        contador.style.color = 'black';
        contador.style.fontWeight = 'bold';
        contador.style.borderRadius = '5px';
        document.body.appendChild(contador);
        function atualizarContador(segundos) {
            contador.textContent = `Próximo recarregamento em ${segundos} segundos`;
        }
        let tempoRestante = 25;
        setInterval(() => {
            tempoRestante--;
            if (tempoRestante === 0) {
                tempoRestante = 25;
            }
            atualizarContador(tempoRestante);
        }, 1000);
    }
    recarregarPagina();
    criarContador();
    window.addEventListener('hashchange', recarregarPagina, false);
    window.addEventListener('popstate', recarregarPagina, false);
    function fecharAba() {
        window.close();
    }
    if (window.location.href.startsWith("https://www.youtube.com/")) {
        fecharAba();
    }
    function clicarComDelay(selector, delay) {
        setTimeout(function() {
            $(selector)[0].dispatchEvent(new MouseEvent('click', { bubbles: true }));
        }, delay);
    }
    $(document).ready(function() {
        clicarComDelay('button.card_run', 2000);
        clicarComDelay('button[class="ytp-large-play-button ytp-button ytp-large-play-button-red-bg"]', 1000);
    });
})();