Greasy Fork

PTC Surf : Vie Faucet Script Websites

Automatically views all PTC ads and Rotate websites

目前为 2023-03-14 提交的版本。查看 最新版本

// ==UserScript==
// @name         PTC Surf : Vie Faucet Script Websites
// @version      1.7.4
// @description  Automatically views all PTC ads and Rotate websites
// @author       stealtosvra
// @match        https://123faucet.com/*
// @match        https://autolitecoin.xyz/*
// @match        https://bitefaucet.com/*
// @match        https://bitfaucet.pw/*
// @match        https://bits.re/*
// @match        https://bitsfree.net/*
// @match        https://btcbunch.com/*
// @match        https://buxcoin.io/*
// @match        https://claimcash.cc/*
// @match        https://claimercorner.xyz/*
// @match        https://claimro.com/*
// @match        https://claimtoro.net/*
// @match        https://claimtrx.com/*
// @match        https://claimvip.com/*
// @match        https://coin-4u.com/*
// @match        https://coinpayz.xyz/*
// @match        https://contentos.one/*
// @match        https://cryptoaffiliates.store/*
// @match        https://cryptoflare.net/
// @match        https://cryptojunkie.net/*
// @match        https://criptoshark.com/*
// @match        https://cryptoflare.net/*
// @match        https://dinofaucet.com/*
// @match        https://earnsolana.xyz/*
// @match        https://faucet4u.com/*
// @match        https://faucetcrypto.net/*
// @match        https://faucetinstant.com/*
// @match        https://faucetltc.com/*
// @match        https://faucetoshi.com/*
// @match        https://feyorra.top/*
// @match        https://freesolana.top/*
// @match        https://freetron.top/*
// @match        https://furyfaucet.com/*
// @match        https://hatecoin.me/*
// @match        https://multicoins.net/*
// @match        https://nobitafc.com/*
// @match        https://paidbucks.xyz/*
// @match        https://shiba.arbweb.info/*
// @match        https://takeclicks.com/*
// @match        https://titansbrand.com/*
// @match        https://vivofaucet.com/*
// @match        https://viefaucet.com/*
// @match        https://xfaucet.org/*
// @match        https://xtrabits.click/*
// @match        https://ziifaucet.com/*
// @icon         https://ziifaucet.com/assets/images/updatedfavicon.ico
// @grant        GM_xmlhttpRequest
// @grant        GM_setValue
// @grant        GM_getValue
// @license      MIT
// @namespace    VengeanceXBT
// ==/UserScript==

(function() {
    'use strict';

    // INSERT YOUR CREDENTIALS
    const email = "";
    const password = "";

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

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

    if (window.location.pathname === '/' && window.location.search === '') {
        window.location.replace(`https://${key}/login`);
    }

    if (document.querySelector("#email")) {
        document.querySelector("#email").value = email;}
    if (document.querySelector("#password")) {
        document.querySelector("#password").value = password;}

    setInterval(function() {
        if (hCaptcha()) {
            if (document.querySelector("button[type='submit']")) {
                document.querySelector("button[type='submit']").click();}}}, 6000);

    if(window.location.href.includes(`https://${key}/dashboard`)) {
        window.location.replace(`https://${key}/ptc`);}

    if(window.location.href.includes(`https://${key}/faucet`)) {
        window.location.replace(`https://${key}/ptc`);}

    const ptcLinks = [
        {
            currentUrl: "https://contentos.one/ptc",
            redirectUrl: "https://nobitafc.com/ptc"
        },
        {
            currentUrl: "https://nobitafc.com/ptc",
            redirectUrl: "https://faucet4u.com/ptc"
        },
        {
            currentUrl: "https://faucet4u.com/ptc",
            redirectUrl: "https://ziifaucet.com/ptc"
        },
        {
            currentUrl: "https://ziifaucet.com/ptc",
            redirectUrl: "https://claimcash.cc/ptc"
        },
        {
            currentUrl: "https://claimcash.cc/ptc",
            redirectUrl: "https://criptoshark.com/ptc"
        },
        {
            currentUrl: "https://criptoshark.com/ptc",
            redirectUrl: "https://cryptojunkie.net/ptc"
        },
        {
            currentUrl: "https://cryptojunkie.net/ptc",
            redirectUrl: "https://hatecoin.me/ptc"
        },
        {
            currentUrl: "https://hatecoin.me/ptc",
            redirectUrl: "https://vivofaucet.com/ptc"
        },
        {
            currentUrl: "https://vivofaucet.com/ptc",
            redirectUrl: "https://takeclicks.com/ptc"
        },
        {
            currentUrl: "https://takeclicks.com/ptc",
            redirectUrl: "https://xtrabits.click/ptc"
        },
        {
            currentUrl: "https://xtrabits.click/ptc",
            redirectUrl: "https://123faucet.com/ptc"
        },
        {
            currentUrl: "https://claimercorner.xyz/web/ptc",
            redirectUrl: "https://freetron.top/ptc"
        },
        {
            currentUrl: "https://freetron.top/ptc",
            redirectUrl: "https://coin-4u.com/ptc"
        },
        {
            currentUrl: "https://coin-4u.com/ptc",
            redirectUrl: "https://bitfaucet.pw/ptc"
        },
        {
            currentUrl: "https://bitfaucet.pw/ptc",
            redirectUrl: "https://claimtoro.net/ptc"
        },
        {
            currentUrl: "https://claimtoro.net/ptc",
            redirectUrl: "https://claimvip.com/ptc"
        },
        {
            currentUrl: "https://claimvip.com/ptc",
            redirectUrl: "https://contentos.one/ptc"
        },
        {
            currentUrl: "https://faucetoshi.com/ptc",
            redirectUrl: "https://multicoins.net/ptc"
        },
        {
            currentUrl: "https://multicoins.net/ptc",
            redirectUrl: "https://bitsfree.net/ptc"
        },
        {
            currentUrl: "https://bitsfree.net/ptc",
            redirectUrl: "https://buxcoin.io/ptc"
        },
        {
            currentUrl: "https://buxcoin.io/ptc",
            redirectUrl: "https://coincet.com/ptc"
        },
        {
            currentUrl: "https://coincet.com/ptc",
            redirectUrl: "https://faucetoshi.com/ptc"
        },
        {
            currentUrl: "https://coinpayz.xyz/ptc",
            redirectUrl: "https://bits.re/ptc"
        },
        {
            currentUrl: "https://bits.re/ptc",
            redirectUrl: "https://coinpot.in/ptc"
        },
        {
            currentUrl: "https://coinpot.in/ptc",
            redirectUrl: "https://coinpayz.xyz/ptc"
        }
    ];

    function redirectAfterDelay(url) {
        setTimeout(function () {
            window.location.href = url;
        }, 30000);
    }

    const currentUrl = window.location.href;
    const nextLink = ptcLinks.find(link => link.currentUrl === currentUrl);

    if (nextLink) {
        redirectAfterDelay(nextLink.redirectUrl);
    }

    setInterval(function() {

        if (hCaptcha()) {
            document.getElementById('verify').click();}}, 5000);

    if(window.location.href.includes(`https://${key}/ptc`)) {
        setInterval(function() {
            if (
                document.querySelector("button.btn.btn-primary.btn-block")) {
                document.querySelector("button.btn.btn-primary.btn-block").click();}})}

    if(window.location.href.includes("https://claimercorner.xyz/web/ptc")) {
        setInterval(function() {
            if (
                document.querySelector("button.btn.btn-primary.btn-block")) {
                document.querySelector("button.btn.btn-primary.btn-block").click();}})}

    if(window.location.href === "https://xtrabits.click/ptc") {
        document.querySelector("button.btn-one.w-100").click();}

    if(window.location.href === "https://criptoshark.com/ptc") {
        document.querySelector("button.btn.btn-success.text-uppercase.w-100.mb-10").click();}

    if(window.location.href === "https://cryptojunkie.net/ptc") {
        document.querySelector("button.btn.btn-success.btn-block").click();}

    if(window.location.href === "https://titansbrand.com/ptc") {
        document.querySelector("button.btn.btn-success.btn-block").click();}

    if(window.location.href === "https://shiba.arbweb.info/ptc") {
        document.querySelector("button.btn.btn-primary.btn-block").click();}

    if(window.location.href === "https://bits.re/ptc") {
        document.querySelector("button.btn.btn-primary.btn-style-light.flex-grow-1.m-l-xxs").click();}

    if(window.location.href === "https://coinpayz.xyz/ptc") {
        document.querySelector("button.btn.btn-info.btn-block").click();}

    if(window.location.href === "https://coinpot.in/ptc") {
        document.querySelector("button.btn.bgc.w-100").click();}

    if(window.location.href === "https://freebinance.top/ptc") {
        document.querySelector("button.btn.btn-primary").click();}

    if(window.location.href === "https://claimtoro.net/ptc") {
        document.querySelector("button.btn.btn-dark.waves-effect.waves-light").click();}

    if(window.location.href === "https://claimvip.com/ptc") {
        document.querySelector("button.btn.btn-dark.waves-effect.waves-light").click();}

    if(window.location.href === " https://freesolana.top/matic/ptc") {
        document.querySelector("button.btn.btn-primary").click();}

    if(window.location.href === "https://feyorra.top/ptc") {
        document.querySelector("button.btn-one.w-100").click();}

    if(window.location.href === "https://cryptoflare.net/ads") {
        document.querySelector("button.claim-btn").click();}

    if(window.location.href === "https://faucetoshi.com/login") {
        setTimeout(function(){
            document.querySelector('button[type="submit"]').click();}, 20000);}

    if (window.location.href === "https://viefaucet.com/app/ptc") {
        function clickButtonAfterDelay() {
            setTimeout(() => {
                const button = document.querySelector('button.el-button.el-button--primary.claim-button');
                button.click();
                clickButtonAfterDelay();
            }, 15000);
        }
        clickButtonAfterDelay();
    }

    if(window.location.href === "https://faucetoshi.com/ptc/view/") {
        $("iframe").remove();
        var verify = setInterval( function() {
            if( $("#verify").is(":visible") ) {
                clearInterval( verify );
                setTimeout( function() {
                    $("form:first").submit();
                }, ( 2000 ) );
            }
        }, 2000 );}

    if(window.location.href.includes("https://coinpayz.xyz/ptc") || window.location.href.includes("https://claimtrx.com/ptc") || window.location.href.includes("https://feyorra.top/ptc")  || window.location.href.includes("https://bits.re/ptc")  || window.location.href.includes("https://coinpot.io/ptc")) {

        const countdown = document.getElementById("ptcCountdown");
        const interval = setInterval(() => {
            if (countdown.innerText === "0 second") {
                clearInterval(interval);
                setTimeout(() => {
                    const verifyButton = document.getElementById("verify");
                    verifyButton.click();
                }, 5000);
            }
        }, 1000);}

    observer.observe(document.body, { attributes: true, childList: true, subtree: true });


})();