MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 696: Line 696:
}
}
});
});
if (mw.user.isAnon() === false) { // Check if the user is not anonymous (logged in)
 
if (mw.user.isAnon() === true) { // Check if the user is anonymous
     $(function () {
     $(function () {
         $('.ext-wikisource-download-button').show(); // Show the button
         $('.ext-wikisource-download-button').hide(); // Hide the button for anonymous users
     });
     });
}
}

Navigation menu