MSPARP_TTS

"eat my entire ass"

目前为 2015-05-01 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name MSPARP_TTS
  3. // @namespace http://msparp.com/
  4. // @version 0.4
  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. $("#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>");
  18. } else {
  19. console.log($('#conversation > p:last-child').text());
  20. }
  21. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址