您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
"eat my entire ass"
// ==UserScript== // @name MSPARP_TTS // @namespace http://msparp.com/ // @version 0.6 // @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"); text = text.replace("Karry", 'car e'); text = text.replace("yeah", 'yah'); $("#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()); } });