Skip to content

Instantly share code, notes, and snippets.

@mariushoch
Created March 23, 2013 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariushoch/5229754 to your computer and use it in GitHub Desktop.
Save mariushoch/5229754 to your computer and use it in GitHub Desktop.
Removes the actions drop down in the MediaWiki Vector skin in favour of a monobook-like menu
/**
* Marius Hoch; 2013-03-24
* Removes the actions drop down in the MediaWiki Vector skin in favour of a monobook-like menu
*/
$( document ).ready( function() {
$( '#p-cactions' )
.hide()
.find( 'li' )
.each(
function( i, elem ) {
$( elem )
.find( 'a' ).wrap( '<span>' );
$( '#p-views' )
.show()
.find( 'ul' )
.eq(0)
.append(
$( elem )
.detach()
);
}
);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment