Auto Claim Faucet helpfpcoin

Clicks on the Claim Now button automatically

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Auto Claim Faucet helpfpcoin
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Clicks on the Claim Now button automatically
// @author       You
// @match        http://helpfpcoin.site/faucet*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // دالة للتحقق من أن الزر متاح للنقر
    function isButtonReady() {
        const claimBtn = document.getElementById('claimBtn');
        return claimBtn && !claimBtn.disabled && isElementVisible(claimBtn);
    }

    // دالة للتحقق من أن العنصر مرئي
    function isElementVisible(element) {
        const style = window.getComputedStyle(element);
        return style.display !== 'none' && style.visibility !== 'hidden' && style.opacity !== '0';
    }

    // دالة للنقر على الزر
    function clickClaimButton() {
        const claimBtn = document.getElementById('claimBtn');
        if (isButtonReady()) {
            claimBtn.click();
            console.log('تم النقر على زر Claim Now بنجاح');
            return true;
        }
        return false;
    }

    // المراقبة والتكرار
    function checkAndClick() {
        if (isButtonReady()) {
            clickClaimButton();
        }
    }

    // مراقبة تغيرات DOM
    const observer = new MutationObserver(function(mutations) {
        checkAndClick();
    });

    // بدء المراقبة
    observer.observe(document.body, {
        childList: true,
        subtree: true,
        attributes: true,
        attributeFilter: ['disabled', 'style', 'class']
    });

    // التحقق فور تحميل الصفحة
    window.addEventListener('load', function() {
        checkAndClick();
        // التحقق كل 500 مللي ثانية للاحتياط
        setInterval(checkAndClick, 500);
    });

    console.log('تم تفعيل سكريبت المطالبة التلقائية');
})();