Greasy Fork is available in English.

MSPARP_TTS

"eat my entire ass"

  1. // ==UserScript==
  2. // @name MSPARP_TTS
  3. // @namespace http://msparp.com/
  4. // @version 0.6
  5. // @description "eat my entire ass"
  6. // @author CR
  7. // @match http://*.msparp.com/chat/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. $('#conversation').bind('DOMNodeInserted DOMNodeRemoved DOMSubTreeModified', function( event ) {
  12. if (event.target.nodeName == "P") {
  13. var text = $('#conversation > p:last-child').text();
  14. text = text.substring(text.indexOf(":") + 1);
  15. text = text.replace("'", "");
  16. text = text.replace(/[0-9a-f]{32}/g, "private chat");
  17. text = text.replace("Karry", 'car e');
  18. text = text.replace("yeah", 'yah');
  19. $("#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>");
  20. } else {
  21. console.log($('#conversation > p:last-child').text());
  22. }
  23. });