Free javascript Hosting


queue-it.js

Uploaded on Jan 16 2022 08:11 by levi.schad

let tabNumber = 0;
let proxyConfig = require('./json/proxylist.json');
let discordWebhook = require('./json/webhook.json');
function getRandomInt(max) {
return Math.floor(Math.random() * max);
}



async function runTask() {
tabNumber++
const request = require('request-promise');
var axios = require('axios');
const { MessageEmbed, WebhookClient } = require('discord.js');
const scrapingbee = require('scrapingbee');
const BitlyClient = require('bitly').BitlyClient;
const bitly = new BitlyClient('a48a0fdfb371201f0f34053596c5e5e531c87610');
let tabStatus = "Loading...";
let website = document.getElementById("website").value;
let proxyLenght = proxyConfig.length
let proxyNumber = getRandomInt(proxyLenght)
let proxyIp = proxyConfig[proxyNumber].ip
let proxyPort = proxyConfig[proxyNumber].port
let proxyUsername = proxyConfig[proxyNumber].username
let proxyPassword = proxyConfig[proxyNumber].password
let thistabnumber = tabNumber
function newTabDiv() {
let newDiv = document.createElement("div");
let newDivConatiner = document.createElement("div");
let divHeader = document.createElement("div");
let divStatus = document.createElement("div");
let tabUrl = document.createElement("div");
let divHeaderText = document.createTextNode(`Tab ${thistabnumber}`);
let divStatusText = document.createTextNode(`${tabStatus}`);
let tabUrlText = document.createTextNode(`loading...`);
newDivConatiner.classList.add("opened-tab-container");
newDiv.classList.add("opened-tab");
newDiv.id = `opened-tab-${thistabnumber}`
divHeader.classList.add("opened-tab-header");
divStatus.classList.add("opened-tab-status");
tabUrl.classList.add("opened-tab-url");
tabUrl.id = `tabUrlText-${thistabnumber}`;
divStatus.id = `tab-${thistabnumber}`;
newDivConatiner.appendChild(divHeader);
newDivConatiner.appendChild(divStatus);
newDivConatiner.appendChild(tabUrl);
divHeader.appendChild(divHeaderText);
divStatus.appendChild(divStatusText);
tabUrl.appendChild(tabUrlText);
document.getElementById("amd-container").appendChild(newDiv);
newDiv.appendChild(newDivConatiner);
}
newTabDiv()
if (website == "test") {
var options = {
'method': 'POST',
'url': 'https://electronicarts.queue-it.net/spa-api/queue/electronicarts/generalsite/enqueue?cid=en-US',
'headers': {
'authority': 'electronicarts.queue-it.net',
'sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"',
'accept': 'application/json, text/javascript, */*; q=0.01',
'content-type': 'application/json',
'x-requested-with': 'XMLHttpRequest',
'sec-ch-ua-mobile': '?0',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
'sec-ch-ua-platform': '"Windows"',
'origin': 'https://electronicarts.queue-it.net',
'sec-fetch-site': 'same-origin',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': 'https://electronicarts.queue-it.net/?c=electronicarts&e=generalsite',
'accept-language': 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7'
},
'proxy': `http://${proxyUsername}:${proxyPassword}@${proxyIp}:${proxyPort}`,
body: JSON.stringify({
"layoutName": "Custom Layout",
"customUrlParams": "",
"targetUrl": "",
"Referrer": ""
})

};
request(options, function (error, response) {
if (error) throw new Error(error);
responeJson = JSON.parse(response.body)
queueInResponse = responeJson.queueId;
document.getElementById(`tab-${thistabnumber}`).innerHTML = "Queued in";
// console.log(queueInResponse);
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://www.urlday.com/api/v1/links?',
'headers': {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Bearer DCOxX2sMXDfMmOJ4UpvAxCnz6NX3Z0tvCxToPJgAvfdz6eGyaeblIiKfsxUP'
},
form: {
'url': `https://electronicarts.queue-it.net/?c=electronicarts&e=generalsite&q=${queueInResponse}`
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
let shorten = JSON.parse(response.body)
document.getElementById(`tabUrlText-${thistabnumber}`).innerHTML = `${shorten.data.short_url}`
});
let getQueueTime = setInterval(async function () {
var options = {
'method': 'POST',
'url': `https://electronicarts.queue-it.net/spa-api/queue/electronicarts/generalsite/${queueInResponse}/status?cid=en-US&l=Custom%20Layout&seid=${queueInResponse}`,
'headers': {
'authority': 'electronicarts.queue-it.net',
'sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"',
'sec-ch-ua-mobile': '?0',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
'content-type': 'application/json',
'accept': 'application/json, text/javascript, */*; q=0.01',
'x-requested-with': 'XMLHttpRequest',
'x-queueit-queueitem-v1': 'waSE61T8WI_cShvsehxys6LUyY_AIiFlawVTLnDJtynsuATQ4iEYMjOMEKqjNVLfjcLdozcWsERZPvv8ypLvzYOCjxF0aONVl5Xqz-zxCocWKqSySJE6qsUbl1seq9T_9MJgBPJ8RVT5cDS0reAdpy_gafG9N20ujYMI3JXSx6HC43BUqHquuEtiuFh11G6GiPNg80PrdBPXq-wTMq0YEkXe6IukrExvBfFuDF6OdDb1EJfKNPT3FYAkbEQtnK41Rky1lGHifJSHtGtk0c6_oaRikju5sYKdWJmbHv51D8BvKEZ9lz4i7kKDIQDY30GSy49IYomJAFD4XkGW20R8sKUfoducgNMlNliAplXl5Cz47XdPKw9opWta57MzaBlyO8iKyaF4mUqR1svq9EXIbHXgxJAlarQTNfLRQI87fpoxIa71EXWS-tGQA8LUGLE2_fPysD9LEY_Sja-kkdP2hV_lhG5wQH8kXYv9zy8VMHmzNPsgx6HBiGuFxHQoUqep1UbgCg7GZjS3ZXNlmGDHZ9IsWiKiLWg1GBKKHAWchL90ZsE3TP0wOFKlfi6BbLMaCqb8dBI_aLk5QTysyDBGQNY0DH8H3a9XsxuCrtEfEKxbciaYA1cmLv5JCYjMmhHlrZgxQV01bE2padE4eXQthSWfduJGY9fAoZWMHPMaQGzdmdjHmDcJ2rh1F87DdOImLeMGvNT0422K9DAPbwbla3wPxAB_ZuQpZ--2OUEMfCUe8Pi2MMgzsCtzofnjtB9jdS9os-gdiQ1TYUGzo4slUZhGRmRk0n4ouspgc4rT6DmxcbKAQxHljlxJmh1Fp1Fp6F53sSqWtKX0gHWQQUG6gMCIKX6nk98Nem_HURowIdNTnayEz4y6NS2-jR_OchmLGRY0JOWjIqnRcQw5CFrztAQcNoqUzMVLzGQhdz-gf7JxlH8iMLAkgfXPRW0V9RCVJB1Ai0K2Ye-rR2h-3Uf0oOgjQbJbqu1bkW6eX_Q4Gag95sLNeO4SYCMLTnyOGaTkp8B4Q0iwsPkn2o1O_fA-Sg2',
'sec-ch-ua-platform': '"Windows"',
'origin': 'https://electronicarts.queue-it.net',
'sec-fetch-site': 'same-origin',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
'referer': 'https://electronicarts.queue-it.net/?c=electronicarts&e=generalsite',
'accept-language': 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7',
},
body: JSON.stringify({
"targetUrl": "",
"customUrlParams": "",
"layoutName": "Custom Layout",
"isClientRedayToRedirect": true,
"isBeforeOrIdle": false
})

};
request(options, function (error, response) {
if (error) throw new Error(error);
responeJson = JSON.parse(response.body)


if (JSON.stringify(responeJson.ticket) !== undefined) {
whichIsInResponse = JSON.stringify((responeJson.ticket.whichIsIn));
document.getElementById(`tab-${thistabnumber}`).innerHTML = whichIsInResponse;
}
else {
redirectResponse = JSON.stringify((responeJson.isRedirectToTarget));
if (redirectResponse == "true") {
document.getElementById(`tab-${thistabnumber}`).innerHTML = "Redirected!";
clearInterval(getQueueTime)
const webhookClient = new WebhookClient({ url: discordWebhook[0].discordWebhook });
const Embed = new MessageEmbed()
.setColor('#FF0000')
.setAuthor({ name: 'ArrowWebhook', iconURL: 'https://i.ibb.co/z4f7Rwq/Meteorlogo.png' })
.setThumbnail('https://www.csl-computer.com/media/wysiwyg/landingpages/2020/amd-ryzen-pro-next-gen/amd_logo.png')
.addFields(
{ name: 'Status:', value: 'Task passed the queue.' },
{ name: 'Website:', value: `Amd.com`, inline: true },
{ name: 'Url:', value: `${document.getElementById(`tabUrlText-${thistabnumber}`).innerHTML}`, inline: true },
)
.setTimestamp()
.setFooter('Arrow®', 'https://i.ibb.co/z4f7Rwq/Meteorlogo.png');

webhookClient.send({ embeds: [Embed] });

}
else {
document.getElementById(`tab-${thistabnumber}`).innerHTML = "Tab got flagged";
document.getElementById("amd-container").removeChild(document.getElementById(`opened-tab-${thistabnumber}`));
}
}

});
}, 5000)

});



}

}




document.getElementById("open-tab").addEventListener("click", () => {
let tabcounter = document.getElementById("tab-counter").value
for (x = 0; x < tabcounter; x++) {
runTask("")

}
})

Back to list