MediaWiki:Citizen.js

/* All JavaScript here will be loaded for users of the Citizen skin */ mw.loader.using( [ 'mediawiki.util' ] ).done( function {	/* HotCat fixer */	setTimeout(function{ x = document.getElementById("p-views").getElementsByTagName("ul")[0].children; for(i=0; i { v.onclick = function(e){ $($(v).parent.parent.children[1]).toggle; e.stopPropagation; } }); $(".toc li:not(:has('li'))").map((k,v) => { $(v).find(".tocnumber").toggle }); } );