FreeFaucet 15 Site AutoRoll Script.FREE CRYPTO EVERY HOUR!!!

AutoRoll Script autoroll and autoclose FreeCardano.com freebitcoin.io freenem.com coinfaucet.io freesteam.io freetether.com freeusdcoin.com freebinancecoin.com freeethereum.com free-tron.com freedash.io freechainlink.io freeneo.io free-ltc.com free-doge.com

// ==UserScript==
// @name         FreeFaucet 15 Site AutoRoll Script.FREE CRYPTO EVERY HOUR!!!
// @namespace    https://greasyfork.org/ru/users/757498
// @version      1.0
// @description  AutoRoll Script autoroll and autoclose FreeCardano.com freebitcoin.io freenem.com coinfaucet.io freesteam.io freetether.com freeusdcoin.com freebinancecoin.com freeethereum.com free-tron.com freedash.io freechainlink.io freeneo.io free-ltc.com free-doge.com
// @author       Alexum77
// @match        https://freecardano.com/*
// @match        https://freebitcoin.io/*
// @match        https://freenem.com/*
// @match        https://coinfaucet.io/*
// @match        https://freesteam.io/*
// @match        https://freetether.com/*
// @match        https://freeusdcoin.com/*
// @match        https://freebinancecoin.com/*
// @match        https://freeethereum.com/*
// @match        https://free-tron.com/*
// @match        https://freedash.io/*
// @match        https://freechainlink.io/*
// @match        https://freeneo.io/*
// @match        https://free-ltc.com/*
// @match        https://free-doge.com/*
// @grant        GM_setValue
// @grant        GM_getValue
// @create       2021-04-11
// ==/UserScript==

const websites = [
    "freecardano.com",
    "freebitcoin.io",
    "freenem.com",
    "coinfaucet.io",
    "freesteam.io",
    "freetether.com",
    "freeusdcoin.com",
    "freebinancecoin.com",
    "freeethereum.com",
    "free-tron.com",
    "freedash.io",
    "freechainlink.io",
    "freeneo.io",
    "free-ltc.com",
    "free-doge.com"
]

setTimeout( function() {
    'use strict';

    // Automatic Login
    AutoLogin();

    // Roll when possible
    if ( document.querySelector( "div[class='roll-wrapper']" ).style.display !== "none" ) {
        document.querySelector( "button[class='main-button-2 roll-button bg-2']" ).click()
        AutoSwitch(); // Automatic page switching
    } else {
        setTimeout( function() {
            // auto reload page
            window.location.reload();
        }, 100000 );
    }


}, 4000 );

// Autom Login
function AutoLogin() {
    var login_form = document.getElementsByClassName( 'login-wrapper wrapper bg-1' );
    if ( login_form.length == 1 ) {
        var inputs = login_form[ 0 ].getElementsByTagName( "input" );
        var button = login_form[ 0 ].getElementsByTagName( "button" )[ 0 ];
        inputs[ 1 ].value = email;
        inputs[ 2 ].value = password;
        button.click()
    }
}

// Auto Page Switching
function AutoSwitch() {
    setTimeout( function() {
        var current_page_id = websites.indexOf( window.location.hostname )
        var next_page_id = ( current_page_id < websites.length - 1 ) ? current_page_id + 1 : 0;
        window.location.href = window.location.protocol + "//" + websites[ next_page_id ]
    }, 5000 );
}