Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

// ==UserScript==

// @name Vfs France alert


// @namespace http://tampermonkey.net/
// @version 0.6
// @description try to take over VFS!
// @author Athmane
// @match https://online.vfsglobal.dz/*
// ==/UserScript==

var Email, Pwd, NumPass, DateN, ExpPass, Prenom, Nom, Genre, Phone, Interval, Visa,
Ref, Country, CounTxt, MsgTxt, Txt, Gender,VisaNum,VisaPlace,VisaDur;
var Dora = 1;

Country = 0;
Email = "visatour006@gmail.com"; // Email
Pwd = "xxxxxxxxx"; // mot de passe vfs
Phone = "xxxxxxxxxx"; // numero téléphone
Gender = ['', 'Male', 'Female']; // 1 masculin, 2 Feminin
var VisaType = null;
var RefNum = "";

var Profiles = ["passeport 1","passeport 2","passeport 3","passeport 4","passeport


5","Passeport 6"];

var inter = 60; //Intervalle en secondes pour rafraîchir la page et sélectionné


type de visa
var visa = 874; //Type de visa (782 Court séjour - 874 Court séjour renouvellement)

/*--------------------Passeport 01------------------------*/

function setForm() {
if (Dora == 1) {
//Profile 1
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;

VisaNum = "";
VisaPlace = "";
VisaDur = "";

}
/*--------------------Passeport 02------------------------*/
else if (Dora == 2) {
//Profile 2
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;

//Renouvellement
VisaNum = "527992377";
VisaPlace = "ALGER";
VisaDur = "90";
}
/*--------------------Passeport 03------------------------*/
else if (Dora == 3) {
//Profile 3
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 2;

//Renouvellement
VisaNum = "527992378";
VisaPlace = "ALGER";
VisaDur = "90";
}
/*--------------------Passeport 04------------------------*/
else if (Dora == 4) {
//Profile 4
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;

//Renouvellement
VisaNum = "527992379";
VisaPlace = "ALGER";
VisaDur = "90";
}
/*--------------------Passeport 05------------------------*/
else if (Dora == 5) {
//Profile 5
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;

//Renouvellement
VisaNum = "600325621";
VisaPlace = "ALGER";
VisaDur = "30";
}
/*--------------------Passeport 06------------------------*/
else if (Dora == 6) {
//Profile 6
NumPass = "";
DateN = "";
ExpPass = "";
Prenom = "prenom";
Nom = "Nom";
Genre = 1;
//Renouvellement
VisaNum = "";
VisaPlace = "";
VisaDur = "";
} else {
alert('Erreur Script VFS');
}
document.title = Prenom + ' ' + Nom;
}

/
*----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------*/

(function() {
'use strict';
$('.leftNav-ul').append('<li class="inactive-link"><a href="/Global-
Appointment/Calendar/FinalCalendar">under configuration to Calendrie</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','#Pro2',function(){
Dora = 2;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro3',function(){
Dora = 3;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro4',function(){
Dora = 4;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro5',function(){
Dora = 5;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro6',function(){
Dora = 6;
setForm();
fillForm();
})

function shiftDesign() {
$('body').prepend('<h5 id="Alert" style="color: red; text-align: center; text-
transforme: uppercase,background-color: teal;">Aucune Notfication</h5>');
$('#header-title').css('margin', '2px');
$('.header').height('40px');
$('.logo').hide();
$('.MsoNormal').hide();
}

function fillForm() {
$("#PassportNumber").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');
if ($('#VisaNumber').length) {
$('#VisaNumber').val(VisaNum);
}
if ($('#PlaceOfIssuance').length) {
$('#PlaceOfIssuance').val(VisaPlace);
}
if ($('#Duartion').length) {
$('#Duartion').val(VisaDur);
}
if ($('#Mobile').length) {
$('#Mobile').val(Phone);
}
if ($('#txtPassport').length) {
$("#AURN").val(RefNum);
$("#txtPassport").val(NumPass);
$("#PrimaryEmailId").val(Email);
}
//$('#submitbuttonId').click();
}
(function() {
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);

if($('#lblDate').text()!=''){
clearInterval(refresh);
var MsgTxt = new SpeechSynthesisUtterance('Rdv France disponible');
window.speechSynthesis.speak(MsgTxt);
$('#btnContinue').click();
}
})();

You might also like