EyesOfTlS

AutoEyesAndAlertToPickTLSrdv

As of 30.12.2018. See ბოლო ვერსია.

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