FreeFaucet AutoROLLnas.

AutoRoll Script for 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

// ==UserScript==
// @name         FreeFaucet AutoROLLnas. 
// @namespace    http://tampermonkey.net/
// @version      1.5
// @description  AutoRoll Script for 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
// @author       Andrea Baghin
// @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
// ==/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
    }
    //every 10 minutes the page will be refreshed to check if you can roll again
    setTimeout(function(){ location.reload(); }, 10*60*1000);

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