V2p and Abdx Autoclaim

this script automaticaly click and claim continuesly v2p and adbx

Versión del día 06/05/2024. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name        V2p and Abdx Autoclaim 
// @namespace   auto.claim.faucet
// @description this script automaticaly click and claim continuesly v2p and adbx 
// @author      ono ngono
// @version     1.7.8
// @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://ad-doge.com/member/shortlinks/*
// @match       https://ad-doge.com/member/*
// @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 and Adbx 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: ""
        },
        V2pBanana: {
            label: "V2pBanana",
            type: "checkbox",
            default: false
        },
        AdbxBanana: {
            label: "AdbxBanana",
            type: "checkbox",
            default: false
        },
        V2pAd_doge1: {
            label: "V2pAd_doge1",
            type: "checkbox",
            default: false
        },
        V2pAd_doge2: {
            label: "V2pAd_doge2",
            type: "checkbox",
            default: false
        }
    }
});
 
(function() {
    'use strict';
 
    // Retrieve the current values of the settings
    const newV2pBananaValue = cfg.get('V2pBanana');
    const newAdbxBananaValue = cfg.get('AdbxBanana');
    const newV2pAd_doge1Value = cfg.get('V2pAd_doge1');
    const newV2pAd_doge2Value = cfg.get('V2pAd_doge2');
    const newNumberValue = cfg.get('Number');
 
    
    if (newV2pBananaValue) {
        const claimButton = document.querySelector('a.btn-one[href="https://banfaucet.com/links/go/34"]');
        if (claimButton) {
            claimButton.click();
        }
    }
    if (newAdbxBananaValue) {
        const claimButton = document.querySelector('a.btn-one[href="https://banfaucet.com/links/go/45"]');
        if (claimButton) {
            claimButton.click();
        }
    }
    if (newV2pAd_doge1Value) {
        const linkElement = document.querySelector('a[href*="ad-doge.com/member/link/1406"]');
        if (claimButton) {
            claimButton.click();
        }
    }
    if (newV2pAd_doge2Value) {
        const linkElement = document.querySelector('a[href*="ad-doge.com/member/link/1407"]');
        if (linkElement) {
            linkElement.click();
        }
    }
    
   
    function inputAndClickNextStep() {
        if (newV2pBananaValue || newV2pAd_doge1Value || newV2pAd_doge2Value) {
            var inputElements = document.querySelectorAll('input[name^="antibot_number_0"]');
            inputElements.forEach(function(inputElement) {
                inputElement.value = newNumberValue;
                inputElement.dispatchEvent(new Event('change'));
            });
 
            var nextButton = document.querySelector('button.custom-button[type="submit"]');
            if (nextButton) {
                nextButton.click();
            }
        } else if (newAdbxBananaValue) {
            var inputElements = document.querySelectorAll('input[name^="antibot_number_"]');
            var allValues = [];
            inputElements.forEach(function(inputElement) {
                inputElement.value = newNumberValue;
                allValues.push(inputElement.value);
                inputElement.dispatchEvent(new Event('change'));
            });
 
           
            if (allValues.length === 2 && allValues[0] === allValues[1]) {
                var nextButton = document.querySelector('button.custom-button[type="submit"]');
                if (nextButton) {
                    nextButton.click();
                }
            }
        }
    }
 
    // Call the function
    inputAndClickNextStep();
 
    
    window.onload = function() {
        
        setTimeout(function() {
            var inputElement = document.querySelector('input[type="submit"][value="NEXT STEP"]');
            if (inputElement) {
                inputElement.click();
            }
        }, 29000); 
 
       
        if (newV2pBananaValue) {
            window.setTimeout(function() {
                window.close();
            }, 40000); 
        } else if (newAdbxBananaValue) {
            window.setTimeout(function() {
                window.close();
            }, 9000); // 9 seconds
        }
    };
})();