MediaWiki:Common.js: Difference between revisions

From WikiFictionAI
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { if (!mw.user.isAnon()) { // User is logged in; the "Toolbox" section will be displayed $('#p-tb').show(); } else { // User is not logged in; hide the "Toolbox" section $('#p-tb').hide(); } });")
 
No edit summary
Tag: Manual revert
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
    if (!mw.user.isAnon()) {
        // User is logged in; the "Toolbox" section will be displayed
        $('#p-tb').show();
    } else {
        // User is not logged in; hide the "Toolbox" section
        $('#p-tb').hide();
    }
});

Latest revision as of 03:57, 23 October 2024

/* Any JavaScript here will be loaded for all users on every page load. */