MediaWiki:Editdropdown.js

/** * Adding links to Special:WhatLinksHere and Special:PrefixIndex to edit dropdown */   'use strict'; var conf = mw.config.get( [           'wgAction',            'wgPageName'        ] ); $( function {        if ( conf.wgAction !== 'view' ) {            return;        }        $( '#WikiaPageHeader .wikia-menu-button .WikiaMenuElement' )            .append( $( '' ) .append(                       $( '' )                            .attr( { 'href': '/wiki/Special:PrefixIndex/' + conf.wgPageName, 'title': 'Subpages' } )                           .text( 'Subpages' )                    ), $( '' ) .append(                       $( '' )                            .attr( { 'href': '/wiki/Special:WhatLinksHere/' + conf.wgPageName, 'title': 'What links here' } )                           .text( 'What Links Here' )                    ) );   } ); }( jQuery, mediaWiki ) );
 * ( function ( $, mw ) {