FUCK TOTAL CHAT

FUCK EMM

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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');
        }
    });
});