Created
March 23, 2013 23:28
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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