User:Taavi/show-cat-summary.js

// show category names in edit summaries when usually only the sortkey is shown $.when(mw.loader.using(['mediawiki.api', 'mediawiki.jqueryMsg']), $.ready) .then(function {        return new mw.Api.loadMessagesIfMissing(['red-link-title']);    }) .then(function {        var redLinkMessage = mw.message('red-link-title', '').text;

$('span.comment a').each(function (i) {           var elem = $(this);            var title = elem.attr('title').replace(redLinkMessage, '');            if (title.startsWith('Category:') && !elem.text.includes(title)) {                elem.text(title + '|' + elem.text);            }        }); });