Dutchycorp Script Coin roll + PTC Support

Free Dutchycorp rolls

目前為 2023-01-16 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Dutchycorp Script Coin roll + PTC Support
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Free Dutchycorp rolls
// @author       vikiweb
// @match        https://autofaucet.dutchycorp.space/*
// @match        https://autofaucet.dutchycorp.space/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=dutchycorp.space
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        GM_xmlhttpRequest
// @grant        GM_setValue
// @grant        GM_getValue
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    ////EDIT YOUR USER NAME AND PASSWORD BELOW////
    var username = "email";////EXAMPLE////
    var password = "password";////EXAMPLE////
    var dutchRoll = false;

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

    function visibleCheck(elm) {
        if(!elm.offsetHeight && !elm.offsetWidth) { return false; }
        if(getComputedStyle(elm).visibility === 'hidden') { return false; }
        return true;
    }


    if(document.querySelector("body #features") && (window.location.href.includes("https://autofaucet.dutchycorp.space/"))) {
        window.location.replace("https://autofaucet.dutchycorp.space/login.php");
    }

    if(window.location.href.includes("https://autofaucet.dutchycorp.space/login.php")){

        setInterval(function() {
            if (document.querySelector("input[name='username']")) {
                document.querySelector("input[name='username']").value = username;
            }
            if (document.querySelector("input[name='password']")) {
                document.querySelector("input[name='password']").value = password;
            }
        }, 1000);


        setInterval(function() {

            if (isCaptchaChecked()) {
                if (document.querySelector("button[name='login-btn']")) {
                    document.querySelector("button[name='login-btn']").click();
                }
            }
        }, 6000);

    }

    if(window.location.href.includes("https://autofaucet.dutchycorp.space/roll.php")){


        if(!document.querySelector("#timer")){
            setInterval(function(){

                if (isCaptchaChecked()) {
                    if (document.querySelector(".boost-btn.unlockbutton") && dutchRoll === false) {
                        document.querySelector(".boost-btn.unlockbutton").click();
                        dutchRoll = true;
                    }

                    if(visibleCheck(document.querySelector("#claim_boosted"))){
                        document.querySelector("#claim_boosted").click();
                    }
                }
            }, 5000)
        }else{
            setTimeout(function(){
                window.location.replace("https://autofaucet.dutchycorp.space/coin_roll.php")
            },60*10000)
        }

    }

    if(window.location.href.includes("https://autofaucet.dutchycorp.space/coin_roll.php")){


        if(!document.querySelector("#timer")){
            setInterval(function(){

                if (isCaptchaChecked()) {
                    if (document.querySelector(".boost-btn.unlockbutton") && dutchRoll === false) {
                        document.querySelector(".boost-btn.unlockbutton").click();
                        dutchRoll = true;
                    }

                    if(visibleCheck(document.querySelector("#claim_boosted"))){
                        document.querySelector("#claim_boosted").click();
                    }
                }
            }, 5000)
        }else{
            setTimeout(function(){
                window.location.replace("https://autofaucet.dutchycorp.space/roll.php")
            },60*10000)
        }

    }

    if(window.location.href.includes("https://autofaucet.dutchycorp.space/ptc/wall.php")){
        var wallLink = document.querySelectorAll(".col.s10.m6.l4 a[name='claim']");

        if(wallLink.length >= 1){
            wallLink[0].style.backgroundColor = "red";

            let match = wallLink[0].onmousedown.toString().match(/'href', '(.+)'/);
            let hrefValue = match[1];

            setTimeout(function(){
                window.location.replace("https://autofaucet.dutchycorp.space" + hrefValue)
            },5000)

        }
    }

    if(window.location.href.includes("https://autofaucet.dutchycorp.space/ptc/view.php")){

        console.log('viewing ptc');

        setInterval(function(){
            if(visibleCheck(document.querySelector("#submit_captcha"))){

                document.querySelector("button[type='submit'].g-recaptcha").click();


                //                 var oldfunction = unsafeWindow.open;
                //                 var windowName = "";

                //                 function newFunction(params1, params2) {

                //                     console.log(params1 + params2);
                //                     if (!params2 || params2 == "_blank") {
                //                         windowName = "popUpWindow";
                //                     } else {
                //                         windowName = params2;
                //                     }

                //                     console.log("WindowName is::" + windowName);

                //                     return oldfunction(params1, windowName);
                //                 };

                //                 unsafeWindow.open = newFunction;

                //                 unsafeWindow.onbeforeunload = function() {
                //                     unsafeWindow.open('', windowName).close();
                //                 };


                //                 if (isCaptchaChecked()) {
                //                     unsafeWindow.open('', windowName).close();
                //                 }


            }else{
                console.log('not found')
            }
        }, 10000)
    }

    if(window.location.href === "https://autofaucet.dutchycorp.space/ptc/"){

        console.log('viewing ptc');

        setInterval(function(){
            if(visibleCheck(document.querySelector("#submit_captcha"))){
                document.querySelector("button[type='submit'].g-recaptcha").click();
            }else{
                console.log('not found')
            }
        }, 10000)
    }

})();