MediaWiki:DISPLAYTITLE.js

function fixPageName{ var newPageTitle = getElementsByClassName(document, 'span', 'changePageTitle')[0]; // Find the span with the new title if(newPageTitle == null) return; // If not found exit var oldPageTitle = getElementsByClassName(document, 'header', 'WikiaPageHeader')[0].getElementsByTagName( "h1" )[0]; //Find the page's title if(oldPageTitle == null) return; // If not found exit oldPageTitle.innerHTML = newPageTitle.innerHTML; // Set the Title } addOnloadHook(fixPageName);