Soltoshindo faucet

Lets make thing easy

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Soltoshindo faucet
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Lets make thing easy
// @author       vikiweb
// @match        https://soltoshindo.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=soltoshindo.com
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Enter your email address and password and Go to https://soltoshindo.com/?r=1403

    let email = "[email protected]";
    let password = "password";
    let check_address = window.location.origin;

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

    if(window.location.href.includes(check_address) && document.querySelector(".nk-banner .banner-wrap")){
        window.location.replace(check_address +'/login');
    }

    if (window.location.href.includes(check_address +'/login')) {
        setTimeout(function() {
            if (document.querySelector("input[name='email']")) {
                document.querySelector("input[name='email']").value = email;
            }
            if (document.querySelector("input[name='password']")) {
                document.querySelector("input[name='password']").value = password;
            }
            if (document.querySelector("button[type='submit']")) {
                document.querySelector("button[type='submit']").click();
            }
        }, 10000);
    }

    if (window.location.href.includes(check_address +'/dashboard')) {
        window.location.replace(check_address +'/claim');
    }

    if(window.location.href.includes(check_address +'/claim')){
        setInterval(function(){

            if(document.querySelector("#fauform button[type='submit']")){
                if(isCaptchaChecked()){
                    document.querySelector("#fauform button[type='submit']").click();
                }
            }

            let string = document.querySelector(".content .grid-cols-12 .intro-y:nth-child(4) .report-box .text-3xl");

            console.log(string)

            if(string){
                let parts = string.innerText.split("/");
                if (parts[0] === "0") {
                    console.log("The first value is 0.");
                    //alert('Come back tomorrow to claim again')
                    window.location.replace(check_address +'/auto');
                } else {
                    console.log("The first value is not 0.");
                }
            }

        }, 10000)
    }


})();