ChatVisionZ Spam Bot

Spamma quello che vuoi su ChatVisionZ.com

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name ChatVisionZ Spam Bot
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Spamma quello che vuoi su ChatVisionZ.com
// @author Mr-Zanzibar
// @match *://chatvisionz.com/*
// @license MIT
// @grant none
// ==/UserScript==

let messageCount = 0;
const messages = ['INSERISCI-IL-MESAGGIO-QUI', 'INSERISCI-IL-MESAGGIO-QUI']; // messaggi da inviare (non lo avevi capito?)

async function spam() {
    try {
        const chatInput = document.getElementById('messageInput');
        const sendButton = document.getElementById('send');
        const nextButton = document.getElementById('next');

        if (!chatInput || !sendButton || !nextButton) {
            console.error("Impossibile trovare gli elementi della chat.");
            console.log('%Reporta questo errore nella pagina ufficiale di Github: https://github.com/Mr-Zanzibar/ChatVisionZ-SpamBot', 'color: magenta; font-weight: bold;');
        }

        if (messageCount < messages.length) { // Controlla se sono stati inviati entrambi i messaggi
            chatInput.value = messages[messageCount];
            sendButton.click();
            console.log('%cMessaggio inviato: ' + messages[messageCount], 'color: green; font-weight: bold;');
            messageCount++;
        } else {
            nextButton.click();
            messageCount = 0; // Resetta per ricominciare
            console.log('%cProssima Chat', 'color: blue;');
        }
    } catch (error) {
        console.error("Errore durante lo spam:", error);
        setTimeout(spam, 2000); // Riprova dopo 2 secondi in caso di errore
    }
}

// Intervallo di 3 secondi
const spamInterval = setInterval(spam, 3000);