Greasy Fork

PTC Surf : Vie Faucet Script Websites

Automatically views all PTC ads and Rotate websites

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

// ==UserScript==
// @name         PTC Surf : Vie Faucet Script Websites
// @version      1.8.2
// @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\./, "");
    const currentUrl = window.location.href;
    const targetUrl = `https://${key}`;

    const container = document.createElement('div');
    container.style.position = 'fixed';
    container.style.bottom = '25px';
    container.style.right = '200px';
    container.style.padding = '25px';
    container.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
    container.style.opacity = '0';
    container.style.transform = 'translateY(100%)';
    container.style.transition = 'opacity 5s, transform 5s';
    container.style.borderRadius = '25px';
    document.body.appendChild(container);

    setTimeout(() => {
        container.style.opacity = '1';
        container.style.transform = 'translateY(0%)';
    }, 100);

    // Create button
    const button = document.createElement('button');
    button.id = 'toggle-btn';
    button.classList.add('on');
    button.style.backgroundColor = 'green';
    button.style.color = 'white';
    button.style.border = 'none';
    button.style.padding = '10px';
    button.style.borderRadius = '25px';
    button.style.cursor = 'pointer';
    button.textContent = 'Bypass On';
    container.appendChild(button);

    // Define the button click event listener function
    function buttonClickListener() {
        button.classList.toggle('on');
        button.textContent = button.classList.contains('on') ? 'Bypass On' : 'Bypass Off';
        button.style.backgroundColor = button.classList.contains('on') ? 'green' : 'red';
        localStorage.setItem('buttonState', button.classList.contains('on') ? 'on' : 'off');
    }

    // Add the button click event listener
    button.addEventListener('click', buttonClickListener);

    // Define the window load event listener function
    function windowLoadListener() {
        if (localStorage.getItem('buttonState') === 'on') {
            console.log('Bypass Mode');
            if (currentUrl === targetUrl + '/') {
                window.location.replace(targetUrl + '/login');
            } else if (currentUrl.includes(targetUrl + '/dashboard') || currentUrl.includes(targetUrl + '/faucet')) {
                window.location.replace(targetUrl + '/ptc');
            }
        }
    }

    if (localStorage.getItem('buttonState') === 'off') {
        button.classList.add('off');
        button.textContent = 'Bypass Off';
        button.style.backgroundColor = 'red';
    }

    // Add the window load event listener
    window.addEventListener('load', windowLoadListener);



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

    const emailField = document.querySelector("#email");
    const passwordField = document.querySelector("#password");
    const submitButton = document.querySelector("button[type='submit']");
    const selectElement = document.querySelector('.form-control');

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

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

    if(window.location.href.includes(`https://${key}/ptc/view`) || window.location.href.includes(`https://${key}/login`)) {
        const hcaptchaOption = selectElement.querySelector('option[value="hcaptcha"]');
        setTimeout(function() {
            hcaptchaOption.selected = true;
            selectElement.dispatchEvent(new Event('change'));
        }, 3000);

    }
    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://criptoshark.com/ptc")) {
        setInterval(function() {
            if (
                document.querySelector("button.btn.btn-success.text-uppercase.w-100.mb-10")) {
                document.querySelector("button.btn.btn-success.text-uppercase.w-100.mb-10").click();}
        }, 5000);
    }


    const ptcLinks = [

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

    ];

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

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

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

    if(window.location.href.includes("https://claimercorner.xyz/web/ptc")) {
        setInterval(function() {
            if (
                document.querySelector("button.btn.btn-success.text-uppercase.w-100.mb-10")) {
                document.querySelector("button.btn.btn-success.text-uppercase.w-100.mb-10").click();}})}


    if(window.location.href === "https://xtrabits.click/ptc") {
        document.querySelector("button.btn-one.w-100").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://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 });

    if(window.location.href === `https://${key}/ptc/view/`) {
        setInterval(function() {if (hCaptcha()) {document.getElementById('verify').click();}}, 5000);}

})();