MSPARP_TTS

"eat my entire ass"

Mint 2015.05.01.. Lásd a legutóbbi verzió

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         MSPARP_TTS
// @namespace    http://msparp.com/
// @version      0.4
// @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");
        $("#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());
    }
});