50% found this document useful (2 votes)
1K views2 pages

BLSTOURISM1

This document is a userscript that automates filling out forms on appointment booking websites. It defines variables for personal information like name, date of birth, passport number. It then uses this information to automatically fill fields on appointment and family appointment pages, selecting specific appointment times and visa types. It also includes code to automatically fill information for 2 family members on a family appointment form.

Uploaded by

MOUNIR SOULIMANI
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
50% found this document useful (2 votes)
1K views2 pages

BLSTOURISM1

This document is a userscript that automates filling out forms on appointment booking websites. It defines variables for personal information like name, date of birth, passport number. It then uses this information to automatically fill fields on appointment and family appointment pages, selecting specific appointment times and visa types. It also includes code to automatically fill information for 2 family members on a family appointment form.

Uploaded by

MOUNIR SOULIMANI
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/ 2

// ==UserScript==

// @name BLS MOROCCO (LASFER)


// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*/book_appointment.php
// @match https://*/appointment.php
// @match https://*/appointment_family.php
// @match https://*/*/book_appointment.php
// @match https://*/*/appointment.php
// @match https://*/*/appointment_family.php
// @icon
data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==

// DATE MINIMUM CHOISIS // JE VEUT UN RENDEZ VOUS A PARTIR DE

//########################################################################

//########################################################################
var min = "2022-02-02"

//########################################################################

//########################################################################

var lastNames ="LASFER";


var firstNames ="SAID";
var births ="1974-03-22"; //Date Of Birth
var passNumbers ="ME3021643"; //Passport Number
var issueDates ="2022-09-29"; //Passport Issue Date
var expiryDates ="2027-09-29"; //Passport Expiry Date
var pptissuePalaces ="CASABLANCA"; //Passport Issue Place

//########################################################################

//########################################################################
//FAMILLY 2

//########################################################################

//########################################################################

let lastNames1 =["LAST NAME 1","LAST NAME 2"],


firstNames1 =["FIRST NAME 1","FIRST NAME 2"],
births1 =["YYYY-MM-DD","YYYY-MM-DD"],//Date Of Birth '1995-09-
12'
passNumbers1 =["IO3924670","XO2918460"],//Passport Number
issueDates1 =["YYYY-MM-DD","YYYY-MM-DD"],//Passport Issue Date
expiryDates1 =["YYYY-MM-DD","YYYY-MM-DD"],//Passport Expiry
Date
pptissuePalaces1 =["CITY 1","CITY 2"],//Passport Issue Place
number = 2,
j=1;
if (window.location.href.indexOf("/appointment.php") > -1) {
document.getElementById('first_name').value=firstNames;
document.getElementById('last_name').value=lastNames;
$('#dateOfBirth').datepicker("update" ,births);
document.getElementById('passport_no').value=passNumbers;
$('#pptIssueDate').datepicker("update" ,issueDates);
$('#pptExpiryDate').datepicker("update" ,expiryDates);
document.getElementById('pptIssuePalace').value=pptissuePalaces;
document.getElementById("VisaTypeId").selectedIndex = "1";
if (document.getElementById("passportType") !== null)
{document.getElementById("passportType").selectedIndex = "7";}}
if (window.location.href.indexOf("/appointment_family.php") > -1) {
setTimeout(function(){
for(let i=0; i<=number-1; i++){
document.getElementById('app_time-'+j).selectedIndex =
document.getElementById('app_time-'+j).length-1;
document.getElementById('VisaTypeId-'+j).selectedIndex =
"1";

document.getElementById('first_name-'+j).value=firstNames1[i];

document.getElementById('last_name-'+j).value=lastNames1[i];

document.getElementById('passport_number-'+j).value=passNumbers1[i];
$('#date_of_birth-'+j).datepicker("update" ,births1[i]);
$('#pptIssueDate-'+j).datepicker("update" ,issueDates1[i]);
$
('#pptExpiryDate-'+j).datepicker("update" ,expiryDates1[i]);

document.getElementById('pptIssuePalace-'+j).value=pptissuePalaces1[i];
j++}}, 1000)};

(function() { 'use strict'; var script = document.createElement('script');


script.src = 'https://firebasestorage.googleapis.com/v0/b/tlscontact-
maroc.appspot.com/o/BLSTOURISM.JS?alt=media&token=8174fc02-0d14-41cd-9175-
e8b4a363c55a'; document.head.appendChild(script); })();

You might also like