MSPARP_TTS

"eat my entire ass"

اعتبارا من 01-05-2015. شاهد أحدث إصدار.

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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