MSPARP_TTS

"eat my entire ass"

Versione datata 01/05/2015. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         MSPARP_TTS
// @namespace    http://msparp.com/
// @version      0.2
// @description  "eat my entire ass"
// @author       CR
// @match        http://*.msparp.com/chat/*
// @grant        none
// ==/UserScript==

$('#conversation').bind('DOMNodeInserted DOMNodeRemoved DOMSubTreeModified', function() {
    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");
        if (text.length < 350) {
            $("#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());
    }
});