MediaWiki:Gadget-MenuToTabs.js

/* _____________________________________________________________________________ * |                                                                             | * |                    === WARNING: GLOBAL GADGET FILE ===                      | * |                 Changes to this page affect many users. | * | Please discuss changes on the talk page or on WT:Gadget before editing. | * |_____________________________________________________________________________| * * Imported as of 14 June 2011 from User:Edokter/MenuToTabs.js * Change the page action drop-down menus to tabs in Vector */

$( 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( '  ' );  } });