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)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
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' )
       .find( '.vector-menu-checkbox' )
        .unwrap()
         .remove();
      .find( 'li > a' )
         .wrap( '<span></span>' );
    $( '#p-cactions' ).find( 'input, h3' ).remove();
   }
   }
});
});

Latest revision as of 20:13, 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' )
      .find( '.vector-menu-checkbox' )
        .remove();
  }
});