User:Yair rand/catfix.js

$(document).ready(function($){	var s, c;	if( wgNamespaceNumber === 14 && ( s = document.getElementById("catfix") ) ) {		c = "#" + s.className.split("CATFIX-")[1].replace(/ /g, "_" );		s = s.getElementsByTagName("*")[0] || document.createElement("span");		$("#mw-pages>.mw-content-ltr").find("li>a").each(function{ var li = this.parentNode, clone = s.cloneNode( false ); li.removeChild( this ); this.setAttribute("href", this.getAttribute("href", 2) + c ); clone.appendChild( this ); li.appendChild( clone ); })	} })