FUCK TOTAL CHAT

FUCK EMM

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         FUCK TOTAL CHAT
// @version      1.0.0
// @description  FUCK EMM
// @author       DaCurse0
// @copyright    2017+, DaCurse0
// @match        http://totalchat.tapuz.co.il/
// @match        http://totalchat.co.il/
// @require      https://code.jquery.com/jquery-latest.min.js
// @namespace https://greasyfork.org/users/62051
// ==/UserScript==

$(function() {
    var msg = '';
    var on = false;
    var i;
    $('#header-banner').append('<input id="botmsg"> <button id="setmsg">Set</button> <button id="togglebot">Start</button>');
    $('#setmsg').click(function() {
        msg = $('#botmsg').val();
    });
    $('#togglebot').click(function() {
        if(!on) {
            on = true;
            i = setInterval(function() {$('#textinput').val(msg + " " + Math.random().toString(36).substr(2));$('#btn-send').click();$('#div-colors').children()[Math.floor(Math.random() * ($('#div-colors').children().length - 1))].click();}, 800);
            $('#togglebot').text('Stop');
        } else {
            on = false;
            clearInterval(i);
            $('#togglebot').text('Start');
        }
    });
});