0% found this document useful (0 votes)
476 views2 pages

Esf

Uploaded by

alion
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)
476 views2 pages

Esf

Uploaded by

alion
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
  • UserScript Definition
  • Function Definitions
  • Verification and Submission

// ==UserScript==

// @name MAR DOORSTEP


// @namespace http://tampermonkey.net/
// @version 2024-03-30
// @description try to take over the world!
// @author MOUDAMIR
// @match *://blsspainmorocco.com/*
// @@match https://www.blsspainmorocco.net/MAR/bls/doorstepform
// @match *://spain.blscn.cn/*
// @match https://spain.blscn.cn/CHN/bls/doorstepform
// @◙match https://spain.blscn.cn/CHN/bls/doorstepservice
// @icon
data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Define the values you want to autofill


var firstName = 'Elhelali';
var lastName = 'Ali';
var email = '[email protected]';
var mobileNo = '0613740619';
var city = 'Nador';
var locationText = 'Nador'; // Define the location text you want to select

// Function to select an option from the dropdown list


function selectOptionFromDropdown(selector) {
var option = document.querySelector(selector);
if (option) {
option.click();
}
}

// Function to select a location from the Kendo dropdown


function selectKendoLocation(locationText) {
// Find the Kendo dropdown widget
const dropdownElement = $("#LocationId").data("kendoDropDownList");

if (dropdownElement) {
// Set the value based on the text of the location
dropdownElement.text(locationText);

// Trigger the change event if necessary


dropdownElement.trigger("change");
} else {
console.log("Kendo dropdown element not found.");
}
}

// Function to autofill the inputs, solve captcha manually, and submit


function autofillSolveCaptchaAndSubmit() {
var firstNameInput = document.querySelector('#FirstName'); // Replace
'#FirstName' with the CSS selector for the First Name input field
var lastNameInput = document.querySelector('#LastName'); // Replace
'#LastName' with the CSS selector for the Last Name input field
var emailInput = document.querySelector('#Email'); // Replace '#Email'
with the CSS selector for the Email input field
var mobileNoInput = document.querySelector('#Mobile'); // Replace
'#Mobile' with the CSS selector for the Mobile Number input field
var cityInput = document.querySelector('#City'); // Replace '#City' with
the CSS selector for the City input field
var verifyButton = document.querySelector('#btnVerify'); // Replace
'#btnVerify' with the CSS selector for the Verify button
var submitButton = document.querySelector('#btnSubmit'); // Replace
'#btnSubmit' with the CSS selector for the Submit button

if (firstNameInput && lastNameInput && emailInput && mobileNoInput &&


cityInput && verifyButton && submitButton) {
firstNameInput.value = firstName;
lastNameInput.value = lastName;
emailInput.value = email;
mobileNoInput.value = mobileNo;
cityInput.value = city;

selectKendoLocation(locationText);

verifyButton.click();

// Wait for 11 seconds before submitting


setTimeout(function() {
submitButton.click();
}, 15000);
}
}

// Call the autofillSolveCaptchaAndSubmit function


autofillSolveCaptchaAndSubmit();

})();

You might also like