MediaWiki:Gadget-UserProfile.js
From WikiEducator
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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
(function(mw, $){ $(function() { if ((wgUserName !== null) && $('#pt-userpage>a').hasClass('new')) { if ((wgCanonicalNamespace === 'User') && (wgTitle === wgUserName)) { if (wgAction === 'view') { $.getScript('/extensions/WE/widgets/userProfile.js', function() { weUserProfile(); }); } } else { mw.notify($('<span>WikiEducator is a <em>community</em>. Please take the time to complete your <a class="new" href="/Special:MyPage">user profile.</a></span>'), {autoHide: false}); } } }); }(mediaWiki, jQuery));