MediaWiki:Gadget-CategoryAboveAll.js
Appearance
![]() | This page is loaded as a part of the CategoryAboveAll gadget, used by 3,443 users. |
//* by [[Commons:User:Ianezz|Ianezz]] ([[Commons:Commons:Village_pump/Archive/2009Sep#CSS_placement_of_categories]]), based on [[:wikinews:Help:User_style#Moving_categories_to_top]]
$( 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]);
} );