EyesOfTlS

AutoEyesAndAlertToPickTLSrdv

Version au 30/12/2018. Voir la dernière version.

// ==UserScript==
// @name         EyesOfTlS
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  AutoEyesAndAlertToPickTLSrdv
// @author       MegaBouSs
// @match        https://dz2fr.tlscontact.com/dz/ORN/login.php
// @grant        God
// ==/UserScript==

/*Alert*/
if (0 !=document.getElementsByClassName("dispo").length) {window.open("https://www.soundjay.com/button/sounds/button-7.mp3");
       }
/*Refresh*/
setInterval(function(){
    if (0 ==document.getElementsByClassName("dispo").length) {location.reload();

    }
},
61000);
 /*FromIndexToLogin*/
if (
  (
    window.location.href).indexOf("index") > -1
) { document.querySelector("#header > div.header-nav > a:nth-child(2)").click();}
/*ChangeEmail*/
if (
  (
    document.documentElement.textContent || document.documentElement.innerText
  ).indexOf("temporairement verrouillé") > -1
) {
    var standartPassword="*******";
    document.getElementById("pwd").value= standartPassword ;

    var User1="[email protected]",
        User2="[email protected]",
        User3="[email protected]",
        User4="[email protected]",
        User5="[email protected]";
    var actualEmail=document.getElementById("email");
if(actualEmail.value.indexOf(User1) > -1){actualEmail.value=User2} else
if(actualEmail.value.indexOf(User2) > -1){actualEmail.value=User3} else
if(actualEmail.value.indexOf(User3) > -1){actualEmail.value=User4} else
if(actualEmail.value.indexOf(User4) > -1){actualEmail.value=User5} else{alert("Plus de compte mon ami(e)")};
};
/*Conect*/
setTimeout(function(){  if (
  (
   document.location.href
  ).indexOf("login") > -1
) { document.querySelector("#login_form > div:nth-child(5) > input").click();}}, 1000);