pick.io : Auto Claim & Auto Login

Auto claims faucet & rotates websites

// ==UserScript==
// @name         pick.io : Auto Claim & Auto Login
// @namespace    lite.doge.sol.tron.pick.auto.claim
// @version      1.4
// @description  Auto claims faucet & rotates websites
// @author       ScriptMADA
// @match        https://bnbpick.io/*
// @match        https://dogepick.io/*
// @match        https://litepick.io/*
// @match        https://solpick.io/*
// @match        https://tronpick.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tronpick.io
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const email = "[email protected]";
    const password = "123";

    const website = window.location.hostname;
    const domainParts = website.split(".");
    const tld = domainParts.pop();
    const domain = domainParts.pop();
    const key = `${domain}.${tld}`.replace(/^www\./, "");
    const currentUrl = window.location.href;
    const targetUrl = `https://${key}`;

    function hCaptcha() {return grecaptcha && grecaptcha.getResponse().length !== 0;}

    const emailField = document.querySelector("#user_email");
    const passwordField = document.querySelector("#password");
    const submitButton = document.querySelector("button.btn");

    if (emailField) {emailField.value = email;}
    if (passwordField) {passwordField.value = password;}

    setInterval(() => {if (hCaptcha()) {submitButton.click();}}, 3000);


    setInterval(function() {
        if (hCaptcha()) {
            document.querySelector("button.process_btn").click();}}, 5000);

    const ptcLinks = [

        ["https://litepick.io/faucet.php", "https://ouo.io/K2bbOl"],
        ["https://tronpick.io/faucet.php", "https://short.dash-free.com/JUpkMjki"],
        ["https://solpick.io/faucet.php", "https://dogepick.io/faucet.php"],
        ["https://dogepick.io/faucet.php", "https://ouo.io/b5MMZP"],
        ["https://bnbpick.io/faucet.php", "https://short.dash-free.com/JUpkMjki"]
    ];

    const currentUrlptc = window.location.href;
    const nextLink = ptcLinks.find(link => link[0] === currentUrlptc);

    if (nextLink) {
        let redirectTimer = setTimeout(() => {
            window.location.href = nextLink[1];
        }, 150000);

        window.addEventListener('beforeunload', () => {
            clearTimeout(redirectTimer);
        });
    }

})();