Translations:Manual:Special pages/214/en

You can also display a custom page through JavaScript, in place of the default error message "Unknown special page" (or the "This page is intentionally left blank." message, if using a subpage of Special:BlankPage). In MediaWiki:Common.js, check for $wgPagename, then hide the MediaWiki-generated content (just appendCSS $visibility ), and inject custom HTML ($innerHTML) into the $bodyContent or $mwcontentholder. For an example, see meta:User:Krinkle/Tools/Real-Time Recent Changes.