Greasy Fork

Greasy Fork is available in English.

PTC Surf : Vie Faucet Website Rotator . Auto PTC

Automatically views all PTC ads and Rotate websites

当前为 2023-03-20 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         PTC Surf : Vie Faucet Website Rotator . Auto PTC
// @version      1.9.1
// @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://cryptoclicks.net/*
// @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://ezimg.co/*
// @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://ptc4btc.com/*
// @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://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bitcoin.svg/800px-Bitcoin.svg.png
// @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 dropdown = document.createElement('div');
    dropdown.style.position = 'fixed';
    dropdown.style.bottom = '-100px';
    dropdown.style.right = '25px';
    dropdown.style.padding = '25px';
    dropdown.style.backgroundColor = 'rgba(255, 0, 0)';
    dropdown.style.zIndex = '99999';
    dropdown.style.borderRadius = '25px';
    dropdown.style.cursor = 'pointer';

    dropdown.style.opacity = '0';
    dropdown.style.transition = 'opacity 3s ease, bottom 3s ease';

    requestAnimationFrame(() => {
        dropdown.style.opacity = '1';
        dropdown.style.bottom = '25px';
    });

    const button = document.createElement('button');
    button.textContent = 'Select Rotation';
    button.style.border = 'none';
    button.style.backgroundColor = 'transparent';
    button.style.color = '#fff';
    button.style.fontWeight = 'bold';
    button.style.textTransform = 'uppercase';
    button.addEventListener('click', toggleDropdown);

    const options = document.createElement('ul');
    options.style.listStyle = 'none';
    options.style.margin = '0';
    options.style.padding = '0';
    options.style.display = 'none';

    const hcaptcha = document.createElement('li');
    hcaptcha.style.cursor = 'crosshair';
    hcaptcha.style.color = '#fff';
    hcaptcha.style.fontSize = '14px';
    hcaptcha.addEventListener('click', () => {
        window.location.href = 'https://claimcash.cc/ptc';
    });
    const hcaptchaIcon = document.createElement('img');
    hcaptchaIcon.src = 'https://cdn.worldvectorlogo.com/logos/hcaptcha-2.svg';
    hcaptchaIcon.width = '16';
    hcaptchaIcon.height = '16';
    hcaptcha.appendChild(hcaptchaIcon);
    hcaptcha.appendChild(document.createTextNode(' hCaptcha'));

    const recaptcha = document.createElement('li');
    recaptcha.style.cursor = 'crosshair';
    recaptcha.style.color = '#fff';
    recaptcha.style.fontSize = '14px';
    recaptcha.addEventListener('click', () => {
        window.location.href = 'https://123faucet.net/ptc';
    });
    const recaptchaIcon = document.createElement('img');
    recaptchaIcon.src = 'https://seeklogo.com/images/R/recaptcha-logo-B20692A07D-seeklogo.com.png';
    recaptchaIcon.width = '16';
    recaptchaIcon.height = '16';
    recaptcha.appendChild(recaptchaIcon);
    recaptcha.appendChild(document.createTextNode(' reCaptcha'));

    const mooncaptcha = document.createElement('li');
    mooncaptcha.style.cursor = 'crosshair';
    mooncaptcha.style.color = '#fff';
    mooncaptcha.style.fontSize = '14px';
    mooncaptcha.addEventListener('click', () => {
        window.location.href = 'https://bits.re';
    });
    const mooncaptchaIcon = document.createElement('img');
    mooncaptchaIcon.src = 'https://i.imgur.com/sbEker1.png';
    mooncaptchaIcon.width = '16';
    mooncaptchaIcon.height = '16';
    mooncaptcha.appendChild(mooncaptchaIcon);
    mooncaptcha.appendChild(document.createTextNode(' Moon Captcha'));

    options.appendChild(hcaptcha);
    options.appendChild(recaptcha);
    options.appendChild(mooncaptcha);

    dropdown.appendChild(button);
    dropdown.appendChild(options);

    document.body.appendChild(dropdown);

    function toggleDropdown() {
        if (options.style.display === 'none') {
            options.style.display = 'block';
            options.style.bottom = `${button.offsetHeight}px`;
        } else {
            options.style.display = 'none';
        }
    }

    window.addEventListener('resize', () => {
        options.style.bottom = `${button.offsetHeight}px`;
    });



    if (currentUrl === targetUrl + '/' || currentUrl === targetUrl + '/web') {
        window.location.replace(targetUrl + '/login');}

    else if (currentUrl.includes(targetUrl + '/dashboard') || currentUrl.includes(targetUrl + '/faucet')) {
        window.location.replace(targetUrl + '/ptc');
    }

    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`) || window.location.href.includes(`https://${key}/web/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`) || window.location.href.includes(`https://${key}/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://coinpot.in/ptc") {
        setInterval(function() {
            document.querySelector("button.btn.bgc.w-100").click();}, 5000);}

    if (window.location.href === "https://claimercorner.xyz/web") {
        window.location.replace("https://claimercorner.xyz/web/login");
    }

    if (window.location.href === "https://claimercorner.xyz/web/dashboard") {
        window.location.replace("https://claimercorner.xyz/web/ptc");
    }

    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://claimcash.cc/ptc", "https://claimercorner.xyz/web/ptc"],
        ["https://claimercorner.xyz/web/ptc", "https://contentos.one/ptc"],
        ["https://contentos.one/ptc", "https://cryptojunkie.net/ptc"],
        ["https://cryptojunkie.net/ptc", "https://criptoshark.com/ptc"],
        ["https://criptoshark.com/ptc", "https://ezimg.co/ptc"],
        ["https://ezimg.co/ptc", "https://faucet4u.com/ptc"],
        ["https://faucet4u.com/ptc", "https://faucetltc.com/ptc"],
        ["https://faucetltc.com/ptc", "https://hatecoin.me/ptc"],
        ["https://hatecoin.me/ptc", "https://nobitafc.com/ptc"],
        ["https://nobitafc.com/ptc", "https://vivofaucet.com/ptc"],
        ["https://vivofaucet.com/ptc", "https://xfaucet.org/"],
        ["https://xfaucet.org/", "https://xtrabits.click/ptc"],
        ["https://xtrabits.click/ptc", "https://claimcash.cc/ptc"],
        ["https://123faucet.net/ptc", "https://bitfaucet.pw/ptc"],
        ["https://bitfaucet.pw/ptc", "https://bitsfree.net/ptc"],
        ["https://bitsfree.net/ptc", "https://coin-4u.com/ptc"],
        ["https://btcbunch.com/ptc", "https://coin-4u.com/ptc"],
        ["https://coin-4u.com/ptc", "https://claimtoro.net/ptc"],
        ["https://claimtoro.net/ptc", "https://claimvip.com/ptc"],
        ["https://claimvip.com/ptc", "https://titansbrand.com/"],
        ["https://titansbrand.com/", "https://takeclicks.com/ptc"],
        ["https://takeclicks.com/ptc", "https://123faucet.net/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://bits.re/ptc", "https://coinpayz.xyz/ptc"],
        ["https://coinpayz.xyz/ptc", "https://coinpot.in/ptc"],
        ["https://claimtrx.com/ptc", "https://coinpot.in/ptc"],
        ["https://coinpot.in/ptc", "https://feyorra.top/ptc"],
        ["https://feyorra.top/ptc", "https://bits.re/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://autolitecoin.xyz/ptc") {
        setTimeout(function() {
            document.querySelector("button.btn.btn-danger").click();}
                   , 5000);}

    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") {
        setTimeout(function() {
            document.querySelector("button.btn.btn-primary.btn-style-light.flex-grow-1.m-l-xxs").click();}, 5000);}

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

    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://ezimg.co/ptc") {
        setTimeout(function(){
            document.querySelector("button.btn-one.w-100").click();}, 5000);}

    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/view") || window.location.href.includes("https://claimtrx.com/ptc/view") || window.location.href.includes("https://feyorra.top/ptc/view")  || window.location.href.includes("https://bits.re/ptc/view")  || window.location.href.includes("https://coinpot.io/ptc/view")) {

        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);}

})();