Vous êtes sur la page 1sur 3

// ==UserScript==

// @name VFS Italie


// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author RIAD
// @match https://online.vfsglobal.dz/*
// @grant none
// ==/UserScript==

////////////////////////////////////// Formulaire ////////////////////////////

var Email = "visatour006@gmail.com";


var Pwd = "motdepasse";
var Phone = "550408578"
var VisaType = 0;
var inter = 30; //Interval en secondes
var visa = 5508; //Type de visa

var Profiles = ["RDV consulting"];

var Gender = ['', 'Male', 'Female'];


var Dora = 1;
var NumPass, DateN, ExpPass, Prenom, Nom, Genre, VisaNum, VisaPlace, VisaDur,
House, Adresse1, Adresse2, Codepostale;

//************************* FORMULAIRE************************
function setForm() {
if (Dora == 1) {

NumPass = "300045287";
DateN = "31/03/1995";
ExpPass = "01/01/2032";
Prenom = "HALA";
Nom = "Bilou";
Genre = 2;
House = 10;
Adresse1 = "Village KOLEA";
Adresse2 = "Wilaya De TIPAZA"
Codepostale = "16001";
} else {
alert('Erreur Script VFS');
}
document.title = Prenom + ' ' + Nom;
}

//************************* END ************************


(function() {
'use strict';
$('.leftNav-ul').append('<li class="active-link"><a href="/Global-
AppointmentAlg/Calendar/FinalCalendar">Calendrier</a>');
// Your code here...
})();

function addButton(i, index) {


$('#sidebar').append('<button type="button" style="width: 100%; height:
50px;background-color:#03b131;border:0;font-size: 1.4em;margin-bottom:
10px;color:#fff;" id="Pro' + (index + 1) + '">' + i + '</button>');
}
$('#sidebar').append('<hr>');
Profiles.forEach(addButton);

$('#sidebar').on('click', '#Pro1', function() {


Dora = 1;
setForm();
fillForm();
})

$('#sidebar').on('click', '#m', function() {


alert('Akka Ih');
});

function fillForm() {
$("#PassportNumber").val(NumPass);
$("#ConfirmPassportNumber").val(NumPass);
$("#FirstName").val(Prenom);
$("#LastName").val(Nom);
$("#DateOfBirth").val(DateN);
$("#PassportExpiryDate").val(ExpPass);
$("#NationalityId option:contains('ALGERIA')").attr('selected', 'selected');
$("#GenderId option:contains('" + Gender[Genre] + "')").attr('selected',
'selected');
$("#HouseNumber").val(House);
$("#StreetAddress1").val(Adresse1);
$("#StreetAddress2").val(Adresse2);
$("#PostalCode").val(Codepostale);

if ($('#VisaNumber').length) {
$('#VisaNumber').val(VisaNum);
}
if ($('#PlaceOfIssuance').length) {
$('#PlaceOfIssuance').val(VisaPlace);
}
if ($('#Duartion').length) {
$('#Duartion').val(VisaDur);
}
}
if ($('#Mobile').length) {
$('#Mobile').val(Phone);
}
(function() {
'use strict';
document.title = Prenom + ' ' + Nom;
if ($('#EmailId').length && $('#Password').length) {
$('#EmailId').val(Email);
$('#Password').val(Pwd);
}

var refresh = setInterval(function() {


$('#VisaCategoryId').val(visa).change();
}, inter * 1000);

setInterval(function() {
if ($('#VisaCategoryId').val() == visa) {
$('#VisaApplicationForm').submit();
}
}, inter * 10000);
setTimeout(function(){
if ($('#lblDate').text() != '') {
clearInterval(refresh);
var MsgTxt = new SpeechSynthesisUtterance('rendez-vous italie disponible');
window.speechSynthesis.speak(MsgTxt);
$('#btnContinue').click();
}else{
//alert('20s No Data');
}
}, 10000);

if ($('#PassportNumber').length) {
setForm();
fillForm();
$('#AddApplicantFormID').submit();
var realConfirm = window.confirm;
window.confirm = function() {
window.confirm = realConfirm;
return true;
};

} else if ($('.rightpanel h1:first-child').text() == 'Customer List') {


if ($('.rightpanel').text().includes("Reference Number")) {
$('.submitbtn').click();
} else {
window.location.href = $('.submitbtn').attr('href');
}
} else if ($('.rightpanel h1:first-child').text() == 'Add New Customer') {
fillForm();

} else if ($('.rightpanel h1:first-child').text() == 'Value Added Services') {


$('.submitbtn').click();

}
})();

Vous aimerez peut-être aussi