0% found this document useful (0 votes)
111 views4 pages

Primtime Visa Appointment Script

The document contains a userscript that modifies dropdown selections on a visa application website. It selects specific options for appointment category, visa type, location, and more. It then constructs a modified URL with the new parameter values to automatically redirect the page.

Uploaded by

Iyad Pranss
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)
111 views4 pages

Primtime Visa Appointment Script

The document contains a userscript that modifies dropdown selections on a visa application website. It selects specific options for appointment category, visa type, location, and more. It then constructs a modified URL with the new parameter values to automatically redirect the page.

Uploaded by

Iyad Pranss
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==

// @name pass verification type


// @namespace [Link]
// @version 1
// @description Modifying functions on a website
// @author Abderaoufxp23
// @match [Link]
// @grant none
// ==/UserScript==

for (var z = 1; z <= 5; z++) {


var AppointmentCategory = 'Prime Time';
var AppointmentCategorydropdownlist = $("#AppointmentCategoryId" +
z).data("kendoDropDownList");
var AppointmentCategoryToSelect =
[Link]().find(item => [Link] ===
AppointmentCategory);

[Link]();

if (AppointmentCategoryToSelect) {
var option = [Link]("li:contains('" +
AppointmentCategory + "')");
[Link]();
}
if([Link]('AppointmentCategoryId' + z).value!='') var
categoryid = [Link]('AppointmentCategoryId' + z).value;

for (var i = 1; i <= 5; i++) {


var VisaType = 'Schengen visa';
var VisaTypedropdownlist = $("#VisaType" + i).data("kendoDropDownList");
var VisaTypeToSelect = [Link]().find(item =>
[Link] === VisaType);

[Link]();

if (VisaTypeToSelect) {

var options = [Link]("li:contains('" + VisaType +


"')");
[Link]();
}
if([Link]('VisaType' + i).value!='') var visatypeid =
[Link]('VisaType' + i).value;

for (var j = 1; j <= 5; j++) {


var VisaSubType = 'Schengen Visa';
var VisaSubTypedropdownlist = $("#VisaSubType" + j).data("kendoDropDownList");
var VisaSubTypeToSelect = [Link]().find(item
=> [Link] === VisaSubType);

[Link]();

if (VisaSubTypeToSelect) {
var option = [Link]("li:contains('" + VisaSubType
+ "')");
[Link]();
}
if([Link]('VisaSubType' + j).value!='') var visasubtypeid =
[Link]('VisaSubType' + j).value;

for (var t = 1; t <= 5; t++) {


var CenterLocation = 'Oran';
var Locationdropdownlist = $("#Location" + t).data("kendoDropDownList");
var LocationToSelect = [Link]().find(item =>
[Link] === CenterLocation);

[Link]();

if (LocationToSelect) {
var option = [Link]("li:contains('" + CenterLocation
+ "')");
[Link]();
}
if([Link]('Location' + t).value!='') var Locationid =
[Link]('Location' + t).value;

var AppointmentFor="Individual";
var FamilyMembersNo=1;
if(FamilyMembersNo>1){

var mb3Divs = [Link]('.mb-3');

var highestZIndex = -1;


var divWithHighestZIndexAndDisplay = null;

[Link](function (mb3Div) {

var dFlexDivs = [Link]('.d-flex');


if ([Link] === 1) {
var radioDivs = dFlexDivs[0].querySelectorAll('.[Link]-bg-
light');
if ([Link] === 2) {

var zIndex = [Link](mb3Div).getPropertyValue('z-


index');
zIndex = parseInt(zIndex, 10);
if (zIndex > highestZIndex) {

var displayStyle =
[Link](mb3Div).getPropertyValue('display');
if (displayStyle !== 'none') {
highestZIndex = zIndex;
divWithHighestZIndexAndDisplay = mb3Div;
}
}
}
}
});

if (divWithHighestZIndexAndDisplay) {

var radioInputs =
[Link]('input[type="radio"]');

[Link](function (radioInput) {
if ([Link] === 'Family') {

[Link]()
[Link]=true;
}
});
}

setTimeout(function(){

var AcceptButton =[Link]('btn btn-success');


AcceptButton[2].click();

},1000);
for (var l = 1; l <= 5; l++) {
var FamilyMembersNodropdownlist = $("#ApplicantsNo" +
l).data("kendoDropDownList");

[Link]();

if (FamilyMembersNo <=
[Link]().length) {
var option = [Link]("li:eq(" +
(FamilyMembersNo - 2) + ")");
[Link]();
}
}

AppointmentFor="Family";
}

var data=[Link](57);

var originalUrl =
'[Link]
appointmentFor=Family&applicantsNo=2&visaType=c805c157-7e8f-4932-89cf-
d7ab69e1af96&visaSubType=b563f6e3-58c2-48c4-ab37-
a00145bfce7c&appointmentCategory=5c2e8e01-796d-4347-95ae-
0c95a9177b26&location=undefined&data=FnkBAS15RpFINmW9BqgLpO1Hsv661Jq3KhZISAPePr2wOI
2%2f0db8eiYUA9DPnJfDsczuv4uLJ3%2bF
%2ffOtbS0beSiRYYPDYTkqN3t1PJ1G2SpkmlSYrCs85QyR97YiXV4lehANzP6PiDKUa4SSiIEWxzrY7gqQH
DJU1XX48ItmsVg%3d#';

var parts = [Link]('?');


var baseUrl = parts[0];
var queryParams = parts[1];
var paramPairs = [Link]('&');
var modifiedParams = [];

[Link](function (paramPair) {
var keyValue = [Link]('=');
var paramName = keyValue[0];
var paramValue = keyValue[1];

if (paramName === 'appointmentFor') {


paramValue = AppointmentFor;}
else if (paramName === 'applicantsNo') {
paramValue = FamilyMembersNo;
}
else if (paramName === 'appointmentCategory') {
paramValue = categoryid;
} else if (paramName === 'location') {
paramValue = Locationid;
} else if (paramName === 'data') {
paramValue = data;
}

[Link](paramName + '=' + paramValue);


});

var modifiedQueryString = [Link]('&');


var modifiedUrl = baseUrl + '?' + modifiedQueryString;

if(Locationid!='') {
setTimeout(()=>{
[Link](modifiedUrl)
},1000)
}

You might also like