MSPARP_TTS

"eat my entire ass"

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

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 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         MSPARP_TTS
// @namespace    http://msparp.com/
// @version      0.6
// @description  "eat my entire ass"
// @author       CR
// @match        http://*.msparp.com/chat/*
// @grant        none
// ==/UserScript==

$('#conversation').bind('DOMNodeInserted DOMNodeRemoved DOMSubTreeModified', function( event ) {
    if (event.target.nodeName == "P") {
        var text = $('#conversation > p:last-child').text();
        text = text.substring(text.indexOf(":") + 1);
        text = text.replace("'", "");
        text = text.replace(/[0-9a-f]{32}/g, "private chat");
        text = text.replace("Karry", 'car e');
        text = text.replace("yeah", 'yah');
        $("#topic").append("<iframe width='1' height='1' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='http://skaia.io/tts.php?line="+encodeURIComponent(text)+"'></iframe>");
    } else {
        console.log($('#conversation > p:last-child').text());
    }
});