User:Erutuon/scripts/reconstructedCategories.js

/*	Cleans up categories for reconstructed languages. Removes "Reconstructed:Langname/" from the beginnings of links in the list of entries and the lists of recently added and oldest entries, replacing it with an asterisk, so that the links look like they would in an entry.

var namespaceNumber	= mw.config.values.wgNamespaceNumber;

/*	If in Category namespace, and if there's a catfix, indicating that the category belongs to a reconstructed language. if ( namespaceNumber === 14 && $("#catfix").length ) {	$(".mw-category, #recent-additions, #oldest-pages").find("a").html(		function(index, content)		{			return content.replace( /Reconstruction:[^\/]+\//g, "*"			);		}	); }