Обсуждения » Разработка

i need help, hello Can someone help me please, i have a scripte but did not work

§
Создано: 16.01.2019
Отредактировано: 16.01.2019

i need help, hello Can someone help me please, i have a scripte but did not work

// ==UserScript==
// @name     get code rdv page
// @version  2018
// @include  https://algeria.blsspainvisa.com/book_appointment.php
// ==/UserScript==
function sendRequest(email,phone,juridiction) {
document.getElementById("email").value = email;
document.getElementById("phone_code").value = "213";
document.getElementById("phone").value = phone ;
document.getElementById("juridiction").selectedIndex = juridiction;
document.querySelector('abbr a').click();
}
//-----------------------------------------------------------------------------------------------------------------------------
sendRequest("[email protected]","77777777","4"); 
//------------------------------------------------------------------------------------------------------------------------------
var myElement = document.getElementById('reponse_div');
myElement.addEventListener('DOMSubtreeModified', contentChanged, false);
var already = 0;
function contentChanged() {
  if(myElement.innerText == "Verification code sent to your phone." && already==0) {
    window.open("https://www.youtube.com/watch?v=BQI1Fvp6rBw","_blank");
  }
}

i can help u i already changed the code and worked for me with auto refresh

can you post the new script

@"boum ily" a dit : i can help u i already changed the code and worked for me with auto refresh

please need the new update

Ответить

Войдите, чтобы ответить.