Ещё было бы неплохо ограничить размер изображений в цитатах.
var quote_img_preview_height = 250;
$(function () {
$("img[src='images/chestnut/misc/citation.gif']").each(function(){
$(this).parent().next().find("img").each(function(){
if($(this).height()>quote_img_preview_height)
$(this).css('cursor','pointer').click(function(){
$(this).attr('height') ? $(this).removeAttr('height') : $(this).attr('height',quote_img_preview_height)
}).trigger("click");
});
});
});
//для работы с тегом offtop внутри quote, однако, прийдётся лезть в поведение onclick у offtop, а оно на форуме реализованно крайне костыльно