// Extract CSRF key from the document's scripts var csrfKey = Array.prototype.map.call(document.scripts, function(s) { var match = s.innerHTML.match(/opts\.csrfKey = "(.*)";/); return match ? match[1] : null; }).filter(Boolean)[0]; // Define variables for chat and channel var CHATADI = "swaizen"; var CHANNEL = "main"; var baseMessage = "test"; // Function to generate random string function getRandomString(length) { var result = ""; for (var i = 0; i < length; i++) { result += Math.floor(Math.random() * 10); } return result; } // Function to send message function mesajGonder(csrfKey, CHATADI, CHANNEL, baseMessage) { var xhr = new XMLHttpRequest(); xhr.open("POST", "https://" + CHATADI + ".chatovod.ru/ajax/", true); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhr.send("act=send&chat=276854&csrf=" + csrfKey + "&channel=" + CHANNEL + "&msg=" + encodeURIComponent(baseMessage + " " + getRandomString(5))); } // Function to start sending messages at high speed function hızlıGönderici() { mesajGonder(csrfKey, CHATADI, CHANNEL, baseMessage); requestAnimationFrame(hızlıGönderici); // Continuously call the function } // Start sending messages hızlıGönderici();