LongMessages *OLD*

When a chat message is > 250 chars, the first 250 are sent and the remainder are put back in the input box

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

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

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            LongMessages *OLD*
// @namespace       skyboy@kongregate
// @version         1.1.0
// @description     When a chat message is > 250 chars, the first 250 are sent and the remainder are put back in the input box
// @author          skyboy
// @include         http://www.kongregate.com/games/*/*
// @homepage        http://userscripts-mirror.org/scripts/show/93328
// ==/UserScript==
if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname)) {
setTimeout(function() {
	javascript:void(window.location.assign("javascript:void(document.observe('holodeck:ready',function(){var sv=function(v){holodeck.activeDialogue()._input_node.value = v};holodeck.addOutgoingMessageFilter(function(m,n) {if (m.length) {m = m.replace(/[\\r\\n]+/,' ').replace(/\\s+$/,'').replace(/^\\s+/, '').replace(/\\s{2,}/, ' ');if (m.length > 250) {setTimeout(sv, 0, m.substr(250));m = m.substring(0, 250);}}n(m, n);})}));"));
}, 1250);
}