Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
5.2 kB
18
Indexable
Never

// ==UserScript==

// @name         photo only

// @namespace    http://tampermonkey.net/

// @version      0.5

// @author       BY SEGMA

// @match        https://www.blsspainmorocco.net/MAR/account/Login?timeOut=True

// @match        https://www.blsspainmorocco.net/MAR/bls/visatype?data=I16AWB7K2SRg0I7e%2bhMIqoWNd2n08cQnkIU744qOIfzbvHm6qH%2b4uMQNaKt3Rsmr62vfbekKGDfK5KRnu2JqsAR8ItxLWIzYmMcER%2bLQGNLWOCkRIc1Me%2fap9g3Qtnz8qMJWPNoyGx6XUvQsg3Qf3yOHSmK2561Hi%2fDS97t3Q4w%3d

// @match        https://www.blsspainmorocco.net/MAR/blsAppointment/ManageAppointment?appointmentFor=Individual&applicantsNo=1&visaType=c805c157-7e8f-4932-89cf-d7ab69e1af96&visaSubType=ab828ce6-d1b3-46e0-8e91-8ffa27d2b6d7&appointmentCategory=37ba2fe4-4551-4c7d-be6e-5214617295a9&location=undefined&data=I16AWB7K2SRg0I7e%2bhMIqoWNd2n08cQnkIU744qOIfzbvHm6qH%2b4uMQNaKt3Rsmr62vfbekKGDfK5KRnu2JqsAR8ItxLWIzYmMcER%2bLQGNLWOCkRIc1Me%2fap9g3Qtnz8qMJWPNoyGx6XUvQsg3Qf3yOHSmK2561Hi%2fDS97t3Q4w%3d

// @match        https://www.blsspainmorocco.net/MAR/Bls/VisaTypeVerification

// @match        https://www.blsspainmorocco.net/MAR/Account/LogIn?ReturnUrl=%2FMAR%2FBls%2FVisaTypeVerification

// @match        https://www.blsspainmorocco.net/mar/home/index

// @match        https://www.blsspainmorocco.net/*/blsAppointment/ManageAppointment*

// @downloadURL  none

// ==/UserScript==

    'use strict';

 

/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

/*$$ IMAGES LINKS $$ IMAGES LINKS $$*/

/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

 

const IMages = [{

 

 

 

 

MOHAMEDQADDOUR : 'https://i.postimg.cc/CKsSdmfv/Whats-App-Image-2023-12-25-at-10-16-27-PM.jpg',//

}];

 

/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

/* DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING */

/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

 

if(document.querySelector('#progress-percent').textContent == '0%'){

 

    let EmailVerificationList = document.getElementsByClassName('div-email-code');

    for (let i = 0; i < EmailVerificationList.length; i++) {

         EmailVerificationList[i].style = 'display: block;';

    }

var modifiedTemplate = function(data) {

    var html = '<div class="slot-item ';

    if (data.Count < eval(data.Code)) {

        html += 'bg-danger" style="border-radius: 8px;padding: 4px 18px 4px 18px;cursor:not-allowed;color:white;">';

        html += data.Name;} else {

        html += 'bg-success" style="border-radius: 8px;padding: 4px 18px 4px 18px;cursor:pointer;color:white;">';

        html += data.Name + ' ' + data.Count;}html += '</div>';return html;};

 

    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. `).repeat(2));

                window.speechSynthesis.speak(MsgTxt);

 

clearInterval(dddd);

                if(localStorage.getItem('dateSelectValue') != 0){choose();}

                                               } else {

                              document.querySelector(`#${slo}`).style.backgroundColor = '#f14242';

                              document.querySelector(`#${slo}`).placeholder = 'By Devteamscripts';

                if (document.getElementById('DateCss').textContent == '\n' )

                                     {document.querySelector(`#${slo}`).style.backgroundColor = '#0d59de';}

}}}

 

 

function img() {var imageUrl = "";var linkText = document.querySelector('a.h6').innerText.replace(/\s/g, '');

for (var i = 0; i < IMages.length; i++) {var obj = IMages[i];

if (obj.hasOwnProperty(linkText)) {imageUrl = obj[linkText];break;}}const fileInput = document.getElementById('uploadfile-1');

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: "/mar/query/UploadProfileImage",type: 'post',data: fd,contentType: false,processData: false,success: function (result) {

if (result.success) {$("#uploadfile-1-preview").attr("src", "/mar/query/getfile?fileid=" + result.fileId);

$("#ApplicantPhotoId").val(result.fileId);} else {alert(result.err);}}

});} else {alert("Failed to retrieve the image from the URL.");

}};if (imageUrl.length>=1) {xhr.send();}}img()}

Leave a Comment