User:Hemantha/common.js

mw.loader.using('mediawiki.util').done(function {       if(!mw.config.get('wgPageName').match(/Articles_for_deletion|Deletion_sort/)) return;        document.querySelectorAll('ul > li:first-child > .delsort-notice:first-child').forEach( function (x) { var sel = '.delsort-notice > a:first-of-type'; var ul = x.parentElement.parentElement; var firstA = ul.querySelector(sel); firstA.style.display = 'none'; firstA.insertAdjacentHTML('beforebegin',                   Array.prototype.slice.call(ul.querySelectorAll(sel))                       .map(function(x) { return '' + x.textContent.match(/list of ([^-]*)/)[1] + '';} )                       .join(', ')                    + ' lists'); Array.prototype.slice.call(ul.querySelectorAll('.delsort-notice')) .slice(1).forEach(function(x) { x.parentElement.style.display='none'; }); }); });

window.LocalComments = { dateDifference: false, dateFormat: 'ymd', dayOfWeek: false, dropDays: 93, dropMonths: 24, timeFirst: true, twentyFourHours: true, };