miningblocks-faucet with countdown

miningblocks.club Faucet otomatik tıklama betiği ve sayaç

Verze ze dne 21. 05. 2024. Zobrazit nejnovější verzi.

// ==UserScript==
// @name         miningblocks-faucet with countdown
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  miningblocks.club Faucet otomatik tıklama betiği ve sayaç
// @author       Siz
// @match        https://miningblocks.club/Faucet/Claim
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Sayfa yüklendiğinde çalıştırmak için bekleme
    window.addEventListener('load', function() {
        console.log('Sayfa yüklendi, betik çalıştırılıyor...');

        // Sayaç ve yapımcı bilgisi için bir div oluşturma
        var counterDiv = document.createElement('div');
        counterDiv.id = 'counterDiv';
        counterDiv.style.position = 'fixed';
        counterDiv.style.top = '10px';
        counterDiv.style.right = '10px';
        counterDiv.style.padding = '10px';
        counterDiv.style.backgroundColor = 'black';
        counterDiv.style.color = 'white';
        counterDiv.style.fontSize = '20px';
        counterDiv.style.zIndex = '1000';
        document.body.appendChild(counterDiv);

        var countdown = 60;  // 1 dakikadan geriye doğru say
        var countdownInterval = setInterval(function() {
            counterDiv.innerHTML = 'Time remaining: ' + countdown + 's<br>Made by Ibomen';
            countdown--;
            if (countdown < 0) {
                clearInterval(countdownInterval);
                location.reload();  // Sayfa yenileme
            }
        }, 1000);

        // Hcaptcha'nın görünür olmadığını kontrol et ve bekle
        var hcaptchaInterval = setInterval(function() {
            var hcaptcha = document.getElementById('Hcaptcha');
            if (!hcaptcha || hcaptcha.style.display === 'none' || hcaptcha.offsetParent === null) {
                clearInterval(hcaptchaInterval);
                console.log('Hcaptcha görünmüyor, butona tıklama işlemi başlıyor...');

                // Butonun varlığını ve kontrol edilmediğini doğrula
                var btnClaim = document.getElementById('btnClaim');
                if (btnClaim) {
                    btnClaim.click();  // Butona tıkla
                    console.log('Butona tıklandı.');

                    // Tıkladıktan sonra 2 saniye bekle
                    setTimeout(function() {
                        console.log('2 saniye bekleme süresi tamamlandı.');
                    }, 2000);
                } else {
                    console.log('Buton bulunamadı!');
                }
            } else {
                console.log('Hcaptcha hala görünür, bekleniyor...');
            }
        }, 1000);  // Her 1 saniyede bir kontrol et
    }, false);
})();