MediaWiki:Gadget-CategoryAboveAll.js

//* by Ianezz (Commons:Commons:Village_pump/Archive/2009Sep), based on wikinews:Help:User_style

function catsattop { if (wgCanonicalNamespace=="Special") return; var cats = document.getElementById('catlinks'); var bc = document.getElementById('bodyContent'); bc.insertBefore(cats, bc.childNodes[0]); } hookEvent ('load', catsattop);