Faucetra Kill Animations + Auto Claim (No Adblock Trigger)

Lightweight mode without triggering anti-adblock.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Faucetra Kill Animations + Auto Claim (No Adblock Trigger)
// @namespace    https://tampermonkey.net/
// @version      1.3
// @description  Lightweight mode without triggering anti-adblock.
// @author       Rubystance
// @license      MIT
// @match        https://faucetra.com/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    const REF_CODE = "HS3D7Z";

    const style = document.createElement('style');
    style.innerHTML = `
        /* We stop the movement, but we don't HIDE the elements */
        *, *:before, *:after {
            animation: none !important;
            transition: none !important;
            animation-duration: 0.001s !important;
            transition-duration: 0.001s !important;
            animation-iteration-count: 1 !important;
        }

        /* Essential for Captchas to render correctly */
        [class*="captcha"], [id*="captcha"], iframe[src*="captcha"],
        iframe[src*="recaptcha"], iframe[src*="hcaptcha"],
        .h-captcha, .g-recaptcha, #cf-turnstile-wrapper, .cf-turnstile,
        iframe[src*="challenges.cloudflare.com"] {
            animation: auto !important;
            transition: auto !important;
        }

        /* Prevent background objects from moving without removing them from DOM */
        .floating-objects, .bg-animation {
            pointer-events: none !important;
            opacity: 0.5 !important;
        }
    `;
    document.documentElement.appendChild(style);

    const checkCaptchas = () => {
        const claimBtn = document.getElementById('claimBtn');
        if (!claimBtn || claimBtn.disabled) return;

        const recaptchaResp = document.getElementById('g-recaptcha-response')?.value;
        const hcaptchaResp = document.querySelector('[name="h-captcha-response"]')?.value;
        const turnstileResp = document.querySelector('[name="cf-turnstile-response"]')?.value;

        if (
            (recaptchaResp && recaptchaResp.length > 20) ||
            (hcaptchaResp && hcaptchaResp.length > 20) ||
            (turnstileResp && turnstileResp.length > 20)
        ) {
            console.log("Harvesting coins for ref " + REF_CODE);

            setTimeout(() => {

                claimBtn.dispatchEvent(new MouseEvent('click', {
                    view: window,
                    bubbles: true,
                    cancelable: true
                }));
            }, 800);

            clearInterval(autoClickInterval);
        }
    };

    const autoClickInterval = setInterval(checkCaptchas, 1000);

    window.addEventListener('load', () => {
        document.querySelectorAll('video').forEach(v => {
            v.pause();
            v.muted = true;
        });
    });

})();