Skip to content

Instantly share code, notes, and snippets.

@micho
Created March 15, 2011 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micho/870485 to your computer and use it in GitHub Desktop.
Save micho/870485 to your computer and use it in GitHub Desktop.
CAPSLOCK PLUGIN FOR TALKERAPP.COM
plugin.onMessageSend = function (event) {
if ((new Date()).getDate() === 14) {
if ((event.content.match(/^([a-z]+)$/) || [false])[0]) {
alert('Y U NO UZ CAPSLOCK?');
}
Talker.sendMessage(event.content.toUpperCase());
Talker.getMessageBox().val('');
return false;
}
else {
return true;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment