MediaWiki:Gadget-MenuToTabs.js: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(remove new input and h3 elements)
(update for vector v35)
Line 2: Line 2:
   if ( mw.config.get( 'skin' ) == 'vector' ) {
   if ( mw.config.get( 'skin' ) == 'vector' ) {
     $( '#p-cactions' )
     $( '#p-cactions' )
       .removeClass( 'vectorMenu' )
       .removeClass( 'vector-menu-dropdown vectorMenu' )
       .addClass( 'vectorTabs' )
       .addClass( 'vector-menu-tabs vectorTabs' )
       .css( 'margin-left', '0.5em' )
       .css( 'margin-left', '0.5em' );
      .find( 'div.menu > ul' )
        .unwrap()
      .find( 'li > a' )
        .wrap( '<span></span>' );
    $( '#p-cactions' ).find( 'input, h3' ).remove();
   }
   }
});
});

Revision as of 02:10, April 18, 2021

$( function() {
  if ( mw.config.get( 'skin' ) == 'vector' ) {
    $( '#p-cactions' )
      .removeClass( 'vector-menu-dropdown vectorMenu' )
      .addClass( 'vector-menu-tabs vectorTabs' )
      .css( 'margin-left', '0.5em' );
  }
});