EyesOfTLS

AutoEyesAndAlertToPickTLSrdv

Versione datata 27/07/2021. Vedi la nuova versione l'ultima versione.

  1. // ==UserScript==
  2. // @name EyesOfTLS
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description AutoEyesAndAlertToPickTLSrdv
  6. // @author MegaBouSs
  7. // @include https://dz2fr.tlscontact.com/dz/ORN/myapp.php*
  8. // @include https://dz2fr.tlscontact.com/dz/ORN/index.php**
  9. // @match https://dz2fr.tlscontact.com/dz/ORN/login.php***
  10. // @grant God
  11. // ==/UserScript==
  12. /*Alert*/
  13. if (0 !=document.getElementsByClassName("dispo").length) {window.open("https://www.soundjay.com/button/sounds/button-7.mp3");
  14. }
  15. /*Refresh*/
  16. setInterval(function(){
  17. if (0 ==document.getElementsByClassName("dispo").length) {location.reload();
  18.  
  19. }
  20. },
  21. 61000);
  22. /*FromIndexToLogin*/
  23. if (
  24. (
  25. window.location.href).indexOf("index") > -1
  26. ) { document.querySelector("#header > div.header-nav > a:nth-child(2)").click();}
  27. /*ChangeEmail*/
  28. if (
  29. (
  30. document.documentElement.textContent || document.documentElement.innerText
  31. ).indexOf("temporairement verrouillé") > -1
  32. ) {
  33. var standartPassword="*******";
  34. document.getElementById("pwd").value= standartPassword ;
  35.  
  36. var User1="exemple1@exemple.com",
  37. User2="exemple2@exemple.com",
  38. User3="exemple3@exemple.com",
  39. User4="exemple4@exemple.com",
  40. User5="exemple5@exemple.com";
  41. var actualEmail=document.getElementById("email");
  42. if(actualEmail.value.indexOf(User1) > -1){actualEmail.value=User2} else
  43. if(actualEmail.value.indexOf(User2) > -1){actualEmail.value=User3} else
  44. if(actualEmail.value.indexOf(User3) > -1){actualEmail.value=User4} else
  45. if(actualEmail.value.indexOf(User4) > -1){actualEmail.value=User5} else{alert("Plus de compte mon ami(e)")};
  46. };
  47. /*Conect*/
  48. setTimeout(function(){ if (
  49. (
  50. document.location.href
  51. ).indexOf("login") > -1
  52. ) { document.querySelector("#login_form > div:nth-child(5) > input").click();}}, 1000);