User:Joeytje50/chat.js

importScriptPage('User:Joeytje50/chat-pings.js','rs');

$('body').append(' '); var pings = 'j[ou]eytje50|j[ou]ey|tje50|dutch';

/* Run this when getting a new message */ onchatmessage = function(text, rawtext) { console.log(rawtext) text = badWordsBeep(text); text = unameBeep(text); /* Mark ping phrases */ pings = pings.replace('(',).replace(')',); text = text.replace((new RegExp('((^|>|('+pings+'))[^<]+?)('+pings+')','ig')), '$1 $4 '); return text; //DO NOT EDIT THIS LINE }