0% found this document useful (0 votes)
457 views5 pages

Script Famill

The document contains code for a user script that automates filling out visa application forms on a website. It defines variables to store information for multiple families applying for visas, including names, dates of birth, passport numbers, and other details. The script populates these variables with data for over 10 families applying for visas in Spain.

Uploaded by

Equinox Beat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
457 views5 pages

Script Famill

The document contains code for a user script that automates filling out visa application forms on a website. It defines variables to store information for multiple families applying for visas, including names, dates of birth, passport numbers, and other details. The script populates these variables with data for over 10 families applying for visas in Spain.

Uploaded by

Equinox Beat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

// ==UserScript==

// @name All FamilLy


// @namespace http://tampermonkey.net/
// @version 9
// @description ?|This is a script to help you apply for a visa in Spain, he can
quickly fill in the visa page information.
// @author TouiMi
// @match
https://www.blsspainmorocco.net/*/blsAppointment/ManageAppointment*
// @grant none
// @run-at document-end

// @downloadURL none
// ==/UserScript==

'use strict';
var timer = setInterval(aaaa, 1000);

function aaaa() {
if(document.querySelector('#progress-percent').textContent == '25%' && $
('#ApplicantsNo').val() > 1){
clearInterval(timer);
let
first_name=[],last_name=[],dateOfBirth=[],passport_no=[],pptIssueDate=[],pptExpiryD
ate=[],TTL=[],ccN=[],cvv=[],ExM=[],ExY=[];

//?????????? | Please fill in the information


| ???????
TTL[0] = 'FAMILYA 4';
first_name[0] = ["SOUAD", "HAMZA", "TAHA"];
last_name[0] = ["CHELHANI", "LAKHMILI", "LAKHMILI"];
dateOfBirth[0] = ["1977-03-27", "2010-01-09", "2010-01-09"];
passport_no[0] = ["FZ5325945", "ME1473215", "OS6891705"];
pptIssueDate[0] = ["2019-03-15", "2019-03-15", "2019-03-15"];
pptExpiryDate[0] = ["2024-03-15", "2024-03-15", "2024-03-15"];
//?????????
*******************************************************************???????????????

TTL[1] = 'AZIZ FAMIL 2';


first_name[1] = ["BELGHAZI"];
last_name[1] = ["SOUAD"];
dateOfBirth[1] = ["1988-10-16"];
passport_no[1] = ["CA8695042"];
pptIssueDate[1] = ["2021-05-31"];
pptExpiryDate[1] = ["2026-05-31"];
//?????????
*******************************************************************???????????????

TTL[2] = 'BOCHRAGHAM FAMIL2';


first_name[2] = ["EL HAMMOUTI"];
last_name[2] = ["BADIA"];
dateOfBirth[2] = ["1956-03-26"];
passport_no[2] = ["KP3798959"];
pptIssueDate[2] = ["2021-09-16"];
pptExpiryDate[2] = ["2026-09-16"];
//?????????
*******************************************************************???????????????

TTL[3] = 'NAIM FAMIL';


first_name[3] = ["JOURHI"];
last_name[3] = ["FATIHA"];
dateOfBirth[3] = ["1992-08-11"];
passport_no[3] = ["CL0646371"];
pptIssueDate[3] = ["2019-11-21"];
pptExpiryDate[3] = ["2024-11-21"];

//?????????
*******************************************************************???????????????

TTL[4] = 'ASSALHIFAMIL3';
first_name[4] = ["YAHYA", "ASSALHI"];
last_name[4] = ["MALIKA", "CHAYMAE"];
dateOfBirth[4] = ["1972-01-20", "2008-09-06"];
passport_no[4] = ["TP7536540", "DS4502041"];
pptIssueDate[4] = ["2020-03-11", "2022-11-30"];
pptExpiryDate[4] = ["2020-03-11", "2027-11-30"];

//?????????
*******************************************************************???????????????

TTL[5] = 'Xalabi';
first_name[5] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[5] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[5] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[5] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[5] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[5] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????

TTL[6] = 'Xalabi';
first_name[6] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[6] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[6] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[6] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[6] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[6] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????

TTL[7] = 'Xalabi';
first_name[7] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[7] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[7] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[7] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[7] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[7] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????

TTL[8] = 'Xalabi';
first_name[8] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[8] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[8] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[8] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[8] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[8] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????

TTL[9] = 'Xalabi';
first_name[9] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[9] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[9] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[9] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[9] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[9] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????

TTL[10] = 'Xalabi';
first_name[10] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[10] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[10] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[10] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[10] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[10] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];

//?????????
*******************************************************************???????????????
TTL[11] = 'Xalabi';
first_name[11] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "11", "11" ];
last_name[11] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "11 11", "11"];
dateOfBirth[11] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[11] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[11] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[11] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????

TTL[12] = 'Xalabi';
first_name[12] = ["OUSSAMA", "ABDELHAI", "OMNIA",
"NOUR" , "NOUR", "NOUR" ];
last_name[12] = ["M RABET", "M RABET", "M RABET",
"EL BAZOUTI", "M RABET", "M RABET"];
dateOfBirth[12] = ["1997-06-12", "1957-05-17", "2003-07-03",
"2010-12-23", "2002-10-04", "1982-01-01"];
passport_no[12] = ["YP2035128", "YP2035128", "YP2035128",
"YP2035128" , "YP2035128", "YP2035128" ];
pptIssueDate[12] = ["2019-04-03", "2023-02-27", "2023-03-14",
"2021-08-11", "2019-12-25", "2021-08-11"];
pptExpiryDate[12] = ["2024-04-03", "2028-02-27", "2028-03-14",
"2026-08-11", "2024-12-25", "2026-08-11"];
//?????????
*******************************************************************???????????????
//?????????
*******************************************************************???????????????
var PassportIssuePlace = "SKHIRATE TEMARA";

var maintenant = new Date();maintenant.setDate(maintenant.getDate() + 45);


var jour = maintenant.getDate();var mois = maintenant.getMonth() + 1;var annee =
maintenant.getFullYear();
var date_formattee = annee + '-' + (mois < 10 ? '0' + mois : mois) + '-' + (jour <
10 ? '0' + jour : jour);

var style ="border-color: block;font-weight: bold;background-image: linear-


gradient(-225deg,#231557 0%,#44107a 29%,#ff1361 67%,#fff800 100%);cursor: pointer;
width: 100px; line-height: 22px;color:white; margin: 0.7px;border-radius: 7px";

for(let f=0; f<last_name.length; f++){


let clickB = document.createElement('input');
clickB.value = TTL[f];
clickB.setAttribute('readonly','');
clickB.id = 'cll'+f;
clickB.style = style;
if(TTL[f] == '11' || TTL[f] == ''){clickB.style.display='none';};
clickB.addEventListener ('mouseover', function(){clickB.style.color
="gold";})
clickB.addEventListener ('mouseover', function(){clickB.style.borderColor
="gold";})
clickB.addEventListener ('mouseleave', function(){clickB.style= style;})
document.querySelector('#applicantDetailsDivForm').prepend(clickB);
//?????????
**************************************************************************?????????
??????

$('#cll'+f).click( ()=>{
$('#TravelDate').val(date_formattee);
for(let n=0; n<7; n++){
for (let q = 1; q <= 5; q++) {
const el = 'GivenName_'+(n+2)+'_' + q;const cn = $('#' + el);
if (cn.is(':visible')) {var giv=el.slice(-1)}}

$('#GivenName_'+(n+2)+'_'+giv).val(first_name[f][n]);
$('#LastName_'+(n+2)+'_'+giv).val(last_name[f][n]);
$('#DateOfBirth_'+(n+2)+'_'+giv).val(dateOfBirth[f][n]);
$('#PassportNo_'+(n+2)+'_'+giv).val(passport_no[f][n]);
$('#IssueDate_'+(n+2)+'_'+giv).val(pptIssueDate[f][n]);
$('#ExpiryDate_'+(n+2)+'_'+giv).val(pptExpiryDate[f][n]);
$('#IssuePlace_'+(n+2)+'_'+giv).val(PassportIssuePlace);
$('#RelationShip_'+(n+2)+'_'+giv).val('a6a7d5a7-aa99-4800-9bf9-
cba6a0a35eb4');
$('#PassportType_'+(n+2)+'_'+giv).val('0a152f62-b7b2-49ad-893e-
b41b15e2bef3');
}document.querySelector('.col-12 .btn-primary').click()
})}}}

You might also like