V2p and Abdx Autoclaim for Bananafaucet

this script automaticaly click and claim continuesly v2p and adbx in bananafaucet

Versão de: 06/05/2024. Veja: a última versão.

// ==UserScript==
// @name        V2p and Abdx Autoclaim for Bananafaucet 
// @namespace   auto.claim.faucet
// @description this script automaticaly click and claim continuesly v2p and adbx in bananafaucet
// @author      ono ngono
// @version     1.7.6
// @grant       unsafeWindow
// @grant       close.Window
// @grant       GM_getValue
// @grant       GM_setValue
// @grant       GM_addStyle
// @grant       GM_xmlhttpRequest
// @grant       window.onurlchange
// @grant       GM_registerMenuCommand
// @require     https://update.greasyfork.org/scripts/439099/1203718/MonkeyConfig%20Modern%20Reloaded.js
// @match       https://banfaucet.com/dashboard
// @match       https://banfaucet.com/links
// @match       https://news.blog24.me/*
// @match       https://blog24.me/*
// @match       https://go.blog24.me/*
// @license     MIT
// ==/UserScript==
 
const cfg = new MonkeyConfig({
    title: 'V2p Autoclick Settings:',
    menuCommand: true,
    params: {
        Announcements: {
            type: 'text',
            default: 'Pilih Satu Shortlink Kemudian Masukkan Angka Yang Sesuai',
            long: 3
        },
        Number: {
            label: 'Masukkan Nomer',
            type: 'text',
            default: ''
        },
        V2p: {
            label: 'V2p',
            type: 'checkbox',
            default: false
        },
        Adbx: {
            label: 'Adbx',
            type: 'checkbox',
            default: false
        }
    }
});

(function() {
    'use strict';

    // Retrieve the current values of the settings inside the function scope
    const newV2pValue = cfg.get('V2p');
    const newAdbxValue = cfg.get('Adbx');
    const newNumberValue = cfg.get('Number');

    // Function to input value and click "NEXT STEP" with a redirect delay
    function inputAndClickNextStep() {
        var inputElements = document.querySelectorAll('input[name^="antibot_number_"]');
        var allValues = [];

        inputElements.forEach(function(inputElement) {
            inputElement.value = newNumberValue; // Assign the newNumberValue to each input
            allValues.push(inputElement.value);
            inputElement.dispatchEvent(new Event('change'));
        });

        // Check if there are two antibot inputs with the same value
        if (allValues.length === 2 && allValues[0] === allValues[1]) {
            var nextButton = document.querySelector('button.custom-button[type="submit"]');
            if (nextButton) {
                nextButton.click();
            }
        }
    }

    // Wait for the page to fully load
    window.onload = function() {
        // Delay the input and click event by 30 seconds
        setTimeout(function() {
            inputAndClickNextStep(); // Call the function to input values and click next step
        }, 30000); // 30 seconds in milliseconds

        // Delay for 45 seconds before closing the window for V2p value
        if (newV2pValue) {
            window.setTimeout(function() {
                window.close();
            }, 45000);
        }

        // Delay for 9 seconds before closing the window for Adbx value
        if (newAdbxValue) {
            window.setTimeout(function() {
                window.close();
            }, 9000);
        }
    };
})();