Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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