User:Fenakhay/scripts/nonmainspaceCategories.js

/*	Cleans up categories for reconstructed and appendix-only languages. Removes "Reconstructed:Langname/" or "Appendix: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 or appendix-only language. if ( namespaceNumber === 14 && $("#catfix").length ) {	$(".mw-category, #recent-additions, #oldest-pages").find("a").html(		function(index, content)		{			return content.replace( /Reconstruction:[^\/]+\//g, "*"			);		}	);	$(".mw-category, #recent-additions, #oldest-pages").find("a").html(		function(index, content)		{			return content.replace( /Appendix:[^\/]+\//g, ""			);		}	); }