adfreeway

O amanhã poderá ser tarde demais !!!

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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         adfreeway
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  O amanhã poderá ser tarde demais !!!
// @author       Keno venas
// @license       MIT
// @match        https://adfreeway.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=adfreeway.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var style = document.createElement('style');
    style.innerHTML = `
        #contador {
            position: fixed;
            top: 10px;
            left: 10px;
            color: black;
            background-color: blue;
            padding: 5px 10px;
            border-radius: 5px;
            z-index: 9999;
        }
    `;
    document.head.appendChild(style);
    var contadorElement = $('<div id="contador">');
    $('body').append(contadorElement);
    function atualizarContador(segundos) {
        contadorElement.text(segundos);
    }
    function recarregarPagina() {
        var segundos = 10;
        atualizarContador(segundos);

        setInterval(function() {
            segundos--;
            atualizarContador(segundos);

            if (segundos === 0) {
                location.reload();
            }
        }, 1000);
    }
    recarregarPagina();
    function clickButtons() {
        var buttons = document.querySelectorAll('.left-btn-form > input:nth-child(3)');
        buttons.forEach(function(button) {
            setTimeout(function() {
                button.click();
            }, 5000);
        });
    }
    function clickLikeNatureButton() {
        var likeNatureButton = document.querySelector('img#like-nature');
        if (likeNatureButton) {
            setTimeout(function() {
                likeNatureButton.click();
            }, 5000);
        }
    }
    window.addEventListener('load', function() {
        clickButtons();
        clickLikeNatureButton();
    });
})();