MediaWiki:WhatLinksHere/code.js

/* Made by: User:KockaAdmiralac */

$(function {   var config = mw.config.get([ 'wgPageName', 'wgIsArticle' ]);   if($('#WikiaPageHeader .WikiaMenuElement').length === 0) {        return;    }    $('#WikiaPageHeader .WikiaMenuElement')        .append( $('') .append(                   $('')                        .attr('href', '/wiki/Special:WhatLinksHere/' + config.wgPageName)                        .text('What links here')                ) ); });