MediaWiki:JSSpecialPage/code.js

function JSSpecialPage(pageName,content) { if(wgNamespaceNumber == -1 && wgTitle == pageName) { $('.page-header h1').text(wgTitle); document.title = wgTitle; $(mw.util.$content).html(content); } }