VieFaucet Claim

Faucet Automation

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         VieFaucet Claim
// @namespace    VieFaucet faucet Claim
// @version      1.0
// @description  Faucet Automation
// @author       Shnethan
// @match        https://viefaucet.com/*
// @icon         https://www.google.com/s2/favicons?domain=viefaucet.com
// @license      © 2026 Shnethan
// @grant        none
// @run-at       document-end

// ==/UserScript==

         /*
                 * Copyright (c) 2026 Shnethan . All rights reserved.
         */

(function() {

    'use strict';

    setInterval(() => {

        if (location.pathname.startsWith('/app/wait')) {
            const b = [...document.querySelectorAll('button.el-button--primary')]
                .find(y => y.textContent.trim() === "Go to Faucet");
            if (b && !b.disabled) b.click();
        }

        if (location.pathname.startsWith('/app/faucet')) {
            const d = document.querySelector('.captcha-container .dot');
            const v = document.querySelector('button.claim-button');

            if (
                d &&
                v &&
                !v.disabled &&
                getComputedStyle(d).display !== 'none' &&
                getComputedStyle(d).visibility !== 'hidden' &&
                parseFloat(getComputedStyle(d).opacity) > 0.05 &&
                (getComputedStyle(d).top !== '0px' || getComputedStyle(d).left !== '0px') &&
                v.textContent.toLowerCase().includes('verify')
            ) {
                v.click();
            }
        }

    }, 1500);

    const x = '680decda73c050e9f7988f24';
    if (location.pathname === '/' && !location.search.includes('r=')) {
        location.replace(`${location.origin}/?r=${x}`);
    }

})();