MediaWiki:Gadget-CategoryAboveAll.js

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

$(document).ready( function catsattop { if ( mw.config.get( 'wgCanonicalNamespace' ) === 'Special') {    return;  }  var cats = document.getElementById('catlinks');  var bc = document.getElementById('bodyContent');  bc.insertBefore(cats, bc.childNodes[0]); } );