User:Wikiverwte/vector.js

importScript('Wikipedia:Igloo/gloo.js'); // Igloo

//* 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]); } );

//* Moving nav boxes to the top. Based on catsattop.

//* Bugs: nav boxes do not appear properly, long scroll at top of page $(document).ready( function navboxattop { var boxes = document.getElementsByClassName("navbox");  var boxstyles = document.getElementsByClassName("navbox-styles");  var bc = document.getElementById('mw-content-text');  for(var i = 0; i < boxes.length; i++) {    var box = boxes[i];	var style = boxstyles[i];  bc.insertBefore(box, bc.childNodes[0]);    bc.insertBefore(style, bc.childNodes[0]);    } } );