User:Gryllida/js/truncateEditSummaryWithClickableEllipsisv2.js

if($('.diff-otitle').length === 0){ var n = 80; $('.comment').each(function(i){		var original = $(this).text;		if(original.length > n){			var $a = $('',{ href: "javascript:void(0)", text: "..."});			$a.click(function{ $(this).parent.text(original); });			var shortText = $.trim(original).substring(0, n).trim(this);			shortText = shortText + " ";			$(this).text(shortText);			$(this).append($a);			$(this).append(')'); }	}); }