User:Dcoetzee/Gadget-DropdownToTabbar.js

/** * Convert Vector portlets menus to tabs. * * @source: http://www.mediawiki.org/wiki/Snippets/Convert_vectorMenu_to_vectorTabs * @rev: 3 * @author: Edokter */

$(document).ready( function {   if ( mw.config.get( 'skin' ) == 'vector' ) {        $( '#p-cactions' )            .removeClass( 'vectorMenu' )            .addClass( 'vectorTabs' )            .css( 'margin-left', '0.5em' )            .find( 'div.menu > ul' )                .unwrap            .find( 'li > a' )                .wrap( '  ' );    } } );