MediaWiki:Common.js: Difference between revisions

m
no edit summary
sims>Rappy 4187
mNo edit summary
sims>Rappy 4187
mNo edit summary
Line 338:
// to the category description page to activate it.
 
$(function catprefix() {
if (!document.getElementById$('#catnoprefix').length) return;{
var anchors = document.getElementById('mw-pages').getElementsByTagName('a');
for (var i = 0; i < anchors.length; i++) {
if (anchors[i].firstChild.nodeValue.indexOf(':') != -1) {
anchors[i].firstChild.nodeValue = anchors[i].firstChild.nodeValue.substring(anchors[i].firstChild.nodeValue.indexOf(':') + 1);
}
}
}
}};
addOnloadHook(catprefix);
 
// **************************************************
Anonymous user