Auto comment NimoTv

Comment nimotv interval

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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);