Auto comment NimoTv

Comment nimotv interval

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Auto comment NimoTv
// @namespace    http://tampermonkey.net/
// @version      0.1.4
// @description  Comment nimotv interval
// @author       Duclh
// @match        https://www.nimo.tv/ngansatthu
// @icon         https://www.google.com/s2/favicons?domain=nimo.tv
// @grant        none
// ==/UserScript==


var chatInputElem = "nimo-chat-box__input"
var sendButtonElem = "nimo-chat-box__send-btn"

var sendButton = ""
var chatbox = ""

//let commentMode = 1

var comments = [
    "Donate cho chị Hai tại đây nha: https://vrstudio.vn/nst"
]
//var commentIdx = 0

var everySec = 1000 * 60 // Số sau số 1000 là giây

var checkExist = setInterval(function() {
    console.log("Tik")
    if (document.getElementsByClassName(chatInputElem)) {
        chatbox = document.getElementsByClassName(chatInputElem)[0]
        chatbox.value = comments[0];
    }

     if (document.getElementsByClassName(sendButtonElem)) {
        sendButton = document.getElementsByClassName(sendButtonElem)[0]
        sendButton.click()
    }

}, everySec);