MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 698: Line 698:
});
});


if (mw.user.isAnon() === true) { // Check if the user is anonymous
if (mw.user.isAnon) { // Check if the user is anonymous
     $(function () {
     $(function () {
         $('.ext-wikisource-download-button').hide(); // Hide the button for anonymous users
         $('.ext-wikisource-download-button').hide(); // Hide the button for anonymous users

Navigation menu