0% found this document useful (0 votes)
1K views

script 2024 king

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
0% found this document useful (0 votes)
1K views

script 2024 king

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/ 3

// ==UserScript==

// @name king BLS A Domicile


// @namespace http://tampermonkey.net/
// @version 1.0
// @description Automatically A Domicile Appointment
// @author Amrou_GRN
// @match https://algeria.blsspainglobal.com/DZA/bls/doorstepservice*
// @match https://algeria.blsspainglobal.com/DZA/bls/doorstepform*
// @icon https://img.icons8.com/?size=77&id=YDmYkmeYAnAg&format=png
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Function to click the button and dismiss the modal
function clickButtonAndDismissModal() {
// Find the button with the specified class
const button = document.querySelector('.btn-success');

// Click the button if found


if (button) {
button.click();

// Dismiss the modal (if needed)


const modal = document.querySelector('.modal');
if (modal) {
const dismissButton = modal.querySelector('[data-bs-
dismiss="modal"]');
if (dismissButton) {
dismissButton.click();
}
}
}
}

// Wait for the page to fully load before executing the script
window.addEventListener('load', clickButtonAndDismissModal);
})();
// Find the button element by its class name
const button = document.querySelector('.btn.btn-primary.mb-4');

// Check if the button element exists


if (button) {
// Simulate a click event on the button
button.click();
} else {
console.log('Button not found.');
}
// refresh
(function() {
'use strict';

// Define the message to detect


const targetMessage = "Doorstep Service Request is closed for today. Please try
again Tomorrow!";

// Function to check if the target message is present


function checkForMessage() {
const messageElement = document.querySelector('.alert.alert-danger');
if (messageElement && messageElement.textContent.trim() === targetMessage)
{
// Refresh the page if the target message is found
location.reload();
}
}

// Check for the message periodically


setInterval(checkForMessage, 90000); // Check every 50 Second (adjust as
needed)
})();

(function() {
'use strict';

document.getElementById('FirstName').value = 'messi';

document.getElementById('LastName').value = 'ronaldo';

document.getElementById('Email').value = '[email protected]';

document.getElementById('Mobile').value = '775468531';

document.getElementById('City').value = 'AKID LOTFI';

const dropdown = document.getElementById('LocationId');


const dropdownList = document.getElementById('LocationId_listbox');

const options = dropdownList.querySelectorAll('li[role="option"]');


let selectedOption;

options.forEach(function(option) {
const optionText = option.textContent.trim();
if
(optionText === 'Oran') {
selectedOption = option;
}
});

if (selectedOption) {
selectedOption.click();
}
// Submit the form
document.getElementById('btnVerify').click();
(function() {
'use strict';

const button = document.getElementById('btnSubmit');

const observer = new MutationObserver(function(mutations) {


mutations.forEach(function(mutation) {
if (mutation.target === button && mutation.type === 'attributes' &&
mutation.attributeName === 'style') {
if (button.style.display !== 'none') {
button.click();
}
}
});
});

observer.observe(button, { attributes: true });

})();
})();

(function () {
'use strict';

var Tesla_div = document.createElement('Buton');


Tesla_div.innerHTML = "DoorStep Service <span style=\"border: 1px solid
black;background-color: violet ;text-shadow: 2px 0px; color: white ; margin-left:
10px;\">Tesla-Dz-Team</span>";
Tesla_div.style.backgroundColor = 'black'; // Couleur de fond
Tesla_div.style.color = 'violet'; // Couleur du texte
Tesla_div.style.position = 'fixed';
Tesla_div.style.top = '50%';
Tesla_div.style.left = '10px';
Tesla_div.style.transform = 'translateY(-50%)';
Tesla_div.style.padding = '5px';
Tesla_div.style.fontWeight = 'bold';
Tesla_div.style.borderRadius = '8px';
Tesla_div.addEventListener('click', function () {
window.location.href = "https://t.me/Tesladzteam";
});
// Ajoute le texte à la page
document.body.appendChild(Tesla_div);
})();

You might also like