Created
March 15, 2011 09:15
-
-
Save micho/870485 to your computer and use it in GitHub Desktop.
CAPSLOCK PLUGIN FOR TALKERAPP.COM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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