MediaWiki:Common.js: Difference between revisions
Blanked the page Tag: Blanking |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
$(document).ready(function() { | |||
// Check if the user is not logged in | |||
if (mw.config.get('wgUserName') === null) { | |||
// Hide the tabs for anonymous users | |||
$('#ca-history').hide(); | |||
$('#ca-view').hide(); | |||
$('#ca-viewsource').hide(); | |||
} | |||
}); | |||
Revision as of 01:09, 20 September 2024
$(document).ready(function() {
// Check if the user is not logged in
if (mw.config.get('wgUserName') === null) {
// Hide the tabs for anonymous users
$('#ca-history').hide();
$('#ca-view').hide();
$('#ca-viewsource').hide();
}
});