MLNTN

Maniacal musings of a pixel perfectionist

HUMOR: jQuery LOLCAT plugin

Posted by Jared on January 19, 2011

I had an idea for a site easter egg recently where a user would enter some key combination and all of the text would be translated into LOLCAT. As I usually do, I started off with a Google search for “jquery lolcat”. Nothing useful.

I search for “lolcat translator” and found better results, including a CPAN module. Reading through the code gave me an idea for how to implement a jQuery LOLCAT plugin of my own.

Check out the demo or download the plugin.

A few answers to some unasked questions:

  • Yes, the translation table is extensible. Pass an object to the $.lolcat() call.
  • Yes, this should keep all bound event handlers, since only text nodes are replaced with translated text.
  • Yes, I spent way too much time on this.

One Response to “HUMOR: jQuery LOLCAT plugin”

  1. [...] do, I started off with a Google search for “jquery lolcat”. Nothing useful. I search… [full post] Jared MLNTN javascriptjqueryjquery plugins 0 0 0 0 [...]

Leave a Reply