Board Thread:Support Requests - Designing Your Wiki/@comment-1173941-20130731134612

Hmmm, I was curious... is it possible to run a script, from a page like MediaWiki:chat-user-parted?

something like, $1 Messages=["has left!","died in a plain crash!","hit a deer and poofed!","had his name written on a magical notebook."] index = Math.floor(Math.random * Messages.length); document.write(Messages[index]);

To like, randomize the message given, when someone leaves.

I ask, because wikia doesn't exactly have an option to randomly pick text or anything. I thought it would be nice to be able to play with little chat things and such.

If this isn't possible, is there some sort of Javascript I could try to run, to modify notifications, as they pop up?

Note, I have not been given the chance to try the code above, on a chat yet. 