Professional Documents
Culture Documents
Bot V5
Bot V5
// @name bot v5
// @namespace http://tampermonkey.net/
// @version 3
// @description autofill blsspain
// @author infovissa
// @match https://www.blsspainmorocco.net/mar/home/index
// @match https://blsspainmorocco.net/*/blsAppointment/ManageAppointment*
// @match https://
// @downloadURL none
// ==/UserScript==
'use strict';
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
/*$$ IMAGES LINKS $$ IMAGES LINKS $$*/
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
const IMages = [{
mohammedamineibka : 'https://i.postimg.cc/q7HHs3jM/Compress-20231004-231329-
9753.jpg',//
}];
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
/* DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T
TOUTCH ANYTHING */
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
if (document.querySelector('#progress-percent').textContent == '0%') {
var slo = ''; var ttt;
for (let i = 1; i <= 10; i++) {
const elementId = 'AppointmentDate' + i;
const element = $('#' + elementId);
if (element.is(':visible')) {
slo = elementId;
}
}
var ids = ['AppointmentSlot1', 'AppointmentSlot2', 'AppointmentSlot3',
'AppointmentSlot4', 'AppointmentSlot5'];
ids.forEach(function (id) {
var element = $(".k-widget.k-dropdown.form-control[aria-owns='" + id +
"_listbox']");
if (element.is(":visible")) {
ttt = "AppointmentSlot" + id.slice(15);
}
});
$('#' + ttt).kendoDropDownList({
optionLabel: "--Select--",
dataTextField: "Name",
dataValueField: "Id",
filter: "contains",
select: OnSlotSelect,
open: OnSlotOpen,
template: modifiedTemplate,
footerTemplate: ({ instance }) => $("#slot-footer-template").html(),
height: 500
});
var familyElement = document.querySelector('.card-body');
isToggled = !isToggled;
LoadAppointmentDates(ttt.slice(15), slo.slice(15));
});
toggleButton.style = 'border-radius: 8px; margin-left : 7px;color : red; font-
weight:bold ;'
dateSelect.type = 'number';
dateSelect.id = 'dateSelect';
dateSelect.style = 'border-radius: 6px;cursor: pointer;'
dateSelect.style.width = '40px';
dateSelect.style.marginLeft = '50px';
dateSelect.min = 0; // sp 茅 cifier la valeur minimale autoris 茅 e
dateSelect.max = 20; // sp 茅 cifier la valeur maximale autoris 茅 e
var dateSelectLabel = document.createElement('span');
labell.id = 'labell';
dateSelectLabel.style = sty;
dateSelectLabel.id = 'day';
dateSelectLabel.textContent = ': Day To Select';
labell.prepend(dateSelectLabel);
labell.prepend(dateSelect);
familyElement.prepend(labell);
//
const k = b; (function (c, d) { const j = b, e = c(); while (!![]) { try
{ const f = -parseInt(j(0x195)) / 0x1 * (-parseInt(j(0x177)) / 0x2) +
parseInt(j(0x178)) / 0x3 * (-parseInt(j(0x18b)) / 0x4) + parseInt(j(0x166)) / 0x5 +
parseInt(j(0x174)) / 0x6 + -parseInt(j(0x16a)) / 0x7 * (-parseInt(j(0x163)) / 0x8)
+ -parseInt(j(0x188)) / 0x9 + parseInt(j(0x170)) / 0xa * (-parseInt(j(0x18f)) /
0xb); if (f === d) break; else e['push'](e['shift']()); } catch (g) { e['push']
(e['shift']()); } } }(a, 0xd38d8)); function b(c, d) { const e = a(); return b =
function (f, g) { f = f - 0x160; let h = e[f]; return h; }, b(c, d); } function a()
{ const r = ['Verifying...', 'backgroundColor', 'trim', 'documentElement', 'exec',
'removeAttribute', 'display', '/DZA/blsappointment/SendAppointmentVerificationCode?
code=', 'ajax', '2722518LtvicM', 'item', 'textContent', '628JZRBIo', 'classList',
'SENT.', 'Request\x20OTP', '11Pyyylr', 'json', 'success', 'E-mail\x20Verified.',
'/DZA/blsappointment/VerifyEmail', 'POST', '142315tqrTpC', '#657689', 'alert-
danger', 'style', 'remove', 'EmailCode', '24AxLzVD', 'add', 'value',
'7662480UCaCWR', 'getElementById', 'GET', 'innerText', '2440249yHLwTC',
'validation-summary', 'btnSenderificationCode', 'EmailVerified', 'Code', 'Your\
x20session\x20has\x20been\x20expired.\x20Please\x20Refresh-it.', '33023930ibtAlt',
'SENDING...', 'block', 'alert-success', '8507046pOciwt', 'img',
'getElementsByClassName', '22oJPKiw', '20832GvZHtX', 'error',
'EmailVerificationCode', 'onclick', 'addEventListener', 'click', 'An\x20OTP\x20has\
x20been\x20sent\x20on\x20your\x20registered\x20e-mail\x20ID.']; a = function ()
{ return r; }; return a(); } let requestButton = document[k(0x167)](k(0x16c)),
verifyEmailButton = document[k(0x167)]('btnVerifyEmail'), errorElement =
document[k(0x176)](k(0x16b))[k(0x189)](0x0); requestButton[k(0x160)][k(0x180)] =
'#657689', verifyEmailButton['style']['backgroundColor'] = k(0x196),
requestButton[k(0x184)](k(0x17b)), verifyEmailButton[k(0x184)]('onclick'),
requestButton['textContent'] = k(0x18e), verifyEmailButton[k(0x18a)] = 'Verify\
x20OTP', requestButton[k(0x17c)](k(0x17d), function () { const l = k;
requestButton[l(0x18a)] = l(0x171), requestOtp(); }),
verifyEmailButton['addEventListener']('click', function () { const m = k;
verifyEmailButton[m(0x18a)] = m(0x17f), verifyEmail(); }); function requestOtp()
{ const n = k; let c = new RegExp('\x5c?code\x5c=(.*?)\x22', n(0x175))[n(0x183)]
(document[n(0x182)]['innerHTML'])?.[0x1]?.[n(0x181)]() || null; if (!c) return
errorElement[n(0x160)]['display'] = n(0x172), errorElement['classList']['remove']
(n(0x173)), errorElement['classList'][n(0x164)](n(0x197)), errorElement[n(0x169)] =
function check() {
unsafeWindow.ShowCommonModal = undefined;
$(".preloader").remove();
$('#global-overlay').hide();
$(document).ready(function () { OnUserConsentAccept(); })
$('#scamAlert').remove();
if ($('#DateCss').length != 0) {
var all = document.getElementById('DateCss').textContent;
if (all.includes('success')) {
var Ville = document.querySelector('#LocationId-list .k-state-
selected').textContent;
var typ = document.querySelector('.k-list-scroller .k-state-
selected').textContent;
document.querySelector('#' + slo).style.backgroundColor = '#44c611';
document.querySelector('#' + slo).placeholder = 'Rendez-vous
Disponible';
var MsgTxt = new SpeechSynthesisUtterance(`Rendez-vous BLS ${ville}
${typ} Disponible.`);window.speechSynthesis.speak(MsgTxt);
clearInterval(dddd);
if (localStorage.getItem('dateSelectValue') != 0) { choose(); }
} else {
document.querySelector('#' + slo).style.backgroundColor =
'#f14242';
document.querySelector('#' + slo).style.backgroundColor =
'#f14242';
if (document.getElementById('DateCss').textContent == '\n')
{document.querySelector('#' + slo).style.backgroundColor = '#0d59de';
}
}
}
}
function choose() {
function ss() {
if ($('#' + slo).val() !== '') {
clearInterval(timm);
$('#' + ttt).click();
if ($(".slot-item.bg-success").length >= 1) {
clearInterval(tim);
$(".slot-item.bg-success").last().click();
clearInterval(tim);
clearInterval(timm);
$('#btnSubmit').show();
$('#btnVerifyAppointment').remove();
$("#EmailVerified").val('True');
if ($('#' + ttt).val() !== '') {
$('#btnSubmit').click();
}
}
}
}
function uploadImage(imageUrl) {
var xhr = new XMLHttpRequest();
xhr.open("GET", imageUrl, true);
xhr.responseType = "blob";
xhr.onload = function () {
if (xhr.status === 200) {
var blob = xhr.response;
var fd = new FormData();
fd.append('file', blob, "image.jpg");
$.ajax({
url: "/DZA/query/UploadProfileImage",
type: 'post',
data: fd,
contentType: false,
processData: false,
success: function (result) {
if (result.success) {
$("#uploadfile-1-preview").attr("src", "/DZA/query/getfile?
fileid=" + result.fileId);
$("#ApplicantPhotoId").val(result.fileId);
} else {
alert(result.err);
}
}
});
} else {
alert("Failed to retrieve the image from the URL.");
}
};
xhr.send();
}
// Example usage
var imageUrl = "https://i.postimg.cc/q7HHs3jM/Compress-20231004-231329-9753.jpg";
uploadImage(imageUrl);
}
}
}