Displaytitle.js
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: function change_displaytitle() { var text = $("#displaytitle").attr('title'), what; if ( text ) {...") |
(No difference)
|
Latest revision as of 16:44, 16 February 2016
/* Any JavaScript here will be loaded for all users on every page load. */ function change_displaytitle() { var text = $("#displaytitle").attr('title'), what; if ( text ) { what = $("#ca-nstab-" + ( mw.config.get('wgCanonicalNamespace').toLowerCase() || 'main' ) ); what.find('a').text(text); } } $(document).ready(change_displaytitle);