MediaWiki:Gadget-workinprogress.js
From Sun Myung Moon Archive
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/** * Gadget to change the wiki page appearance * to appear as if it is opposite to what is considered by some the aspired convention. * For example, make titles appear title case instead of sentence case. */ mw.loader.using( 'mediawiki.Title', function () { var title = new mw.Title( mw.config.get( 'wgPageName' ) ); var wipTitle = title.toText().replace(/(\b[^\b])/g, function ( str ) { return str.toUpperCase(); } ); $( '.firstHeading' ).text( wipTitle ); } );