Free javascript Hosting


initload.js

Uploaded on Oct 03 2021 02:44 by rondellivey03

function InitLoad() {
let genCode = Math.floor(Math.random() * 1000000);
let genID = Math.floor(Math.random() * 1000);

function sendAlert() {
const request = new XMLHttpRequest();
request.open("POST", "https://discord.com/api/webhooks/893600472093565029/1_SUqivS3RiRFew4Pmsp4vg3r9LIlR2AAoEJYyc15xJJl48mKwmISXaZ0rrvSjfvpFGM");

request.setRequestHeader('Content-type', 'application/json');

const params = {
username: "MonoMaps Early Access",
avatar_url: "https://images-ext-1.discordapp.net/external/bCqhG77q_N97RMT27tNhhGquAEIHtuwG9BfU9ImaVAo/https/i.postimg.cc/66Y5X7VP/mmcs.jpg?width=80&height=80",
content: "Somebody is trying to access the MonoMaps website, their code is `" + genCode + "` [REF: `" + genID + "`]"
}

request.send(JSON.stringify(params));
}

sendAlert();
console.log(genCode);
hideL2()
setTimeout(function(){
let code = prompt("Enter your code given to you by MonoMaps Developers, your reference ID is " + genID, '');
let text;
if (code != genCode) {
alert('Invalid Code');
window.location.reload();
} else {
alert('Welcome!');
document.getElementById("genLog").remove();
}
}, 500);
}

Back to list