function fixEmoticons() { $('img.bbcode_smiley').each(function () { $this = $(this); var cls = false; switch ($this.attr('alt')) { case ";-)": cls = 'Emoticonicon_wink'; break; case ":P": cls = 'Emoticonicon_razz'; break; case ":x": cls = 'Emoticonicon_mad'; break; case ":(": cls = 'Emoticonicon_sad'; break; case ":)": cls = 'Emoticonicon_smile'; break; case ":D": cls = 'Emoticonicon_biggrin'; break; } if (cls) { $('<span></span>') .addClass('Emoticon') .addClass(cls) .insertBefore($this); $this.remove(); } }); }
Posts
Blog
Twitter
If someone does go the GM route, you'll probably be stuck with the preview icons being wrong for various reasons.