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

المرجع

This document is a userscript designed to automate the login and appointment booking process on the website blsspainmorocco.com for clients seeking Schengen visas. It includes functionality for filling out client information, booking appointments, and refreshing the page every 45 seconds. Additionally, it plays a sound alert when an appointment date becomes available.

Uploaded by

salmana4991
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

المرجع

This document is a userscript designed to automate the login and appointment booking process on the website blsspainmorocco.com for clients seeking Schengen visas. It includes functionality for filling out client information, booking appointments, and refreshing the page every 45 seconds. Additionally, it plays a sound alert when an appointment date becomes available.

Uploaded by

salmana4991
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 alert with Auto Booking and Cross Rev 3


// @namespace http://tampermonkey.net/
// @version 3.2.0
// @description bls alert with automatic booking for appointments on
blsspainmorocco.com
// @match *://*.blsspainmorocco.com/*
// @grant none
// ==/UserScript==

(function() {
'use strict';

// ‫معلومات العمالء‬
var CrossBlsClients = [
{
TButton: 'HA',
email: '[email protected]',
password: 'cD12@15Ab',
location: 0, // Casablanca
category: 0, // Normal
visaType: 'Schengen visa (Estonia)',
visaSubType: 0, // Schengen visa (Estonia)
appointmentFor: 0, // Individual
numberOfMembers: 0, // 2 Members
firstName: "SALAM",
lastName: "AFFIL",
passportNumber: "UL5854631",
birthDate: "1991-03-06",
phoneNumber: "00212699941499",
email: "[email protected]"
}
// ‫أضف باقي العمالء هنا‬
];

function login(client) {
console.log(`[email protected]`);

const emailField = document.querySelector('[email protected]');


const passwordField = document.querySelector('cD12@15Ab');
const loginButton =
document.querySelector('/html/body/section/div[2]/div/div/div[1]/div/h3/a');

if (emailField && passwordField && loginButton) {


emailField.value [email protected] ;
passwordField.value = cD12@15Ab;
loginButton.click(/html/body/section/div[2]/div/div/div[1]/div/h3/a);
} else {
window.location.href =
"https://www.blsspainmorocco.net/MAR/account/login";
}
}

function bookAppointment(client) {
console.log(`Booking appointment for ${client.email}`);

const visaTypeField = document.querySelector('Schengen visa (Estonia)');


const appointmentDateField =
document.querySelector('/html/body/main/section[1]/div/div[2]/div/div[2]/div/div/
div[7]/div/div/div/div/a');
const confirmButton =
document.querySelector('/html/body/div/div[2]/div[2]/div[2]/div/div[3]/form/
div[2]/div[3]/button');

if (visaTypeField && appointmentDateField && confirmButton) {


visaTypeField.value = client.visaType;
appointmentDateField.value = '2025-01-30';
confirmButton.click(
/html/body/main/div/div[2]/div[1]/div[2]/form/div[2]/div[31]/button);
}
}

function enterPassportData(client) {
console.log(`Entering passport data for ${client.email}`);

const passportField =
document.querySelector('input[name="passportNumber"]');
if (passportField) {
passportField.value = client.passportNumber;
}
}

function fillForm(client) {
document.querySelector('#firstNameField').value = client.firstName;
document.querySelector('#lastNameField').value = client.lastName;
document.querySelector('#passportNumberField').value =
client.passportNumber;
document.querySelector('#birthDateField').value = client.birthDate;
document.querySelector('#phoneNumberField').value = client.phoneNumber;
document.querySelector('#emailField').value = client.email;
}

function automateClients(clients) {
clients.forEach(client => {
login(client);
fillForm(client);
bookAppointment(client);
enterPassportData(client);
});
}

// ‫ ثانية‬45 ‫تحديث الصفحة تلقائًيا كل‬


setInterval(() => {
location.reload();
}, 45000);

// ‫بدء التنفيذ‬
automateClients(CrossBlsClients);

var gun = setInterval(function() {


if (document.getElementsByClassName('day activeClass').length !== 0) {
new Audio('https://www.soundjay.com/mechanical/sounds/machine-gun-
02.mp3').play();
clearInterval(gun);
}
}, 1000);

})();

You might also like