Anonymous
×
Create a new article
Write your page title here:
We currently have 5 articles on CATCRAFT WIKI. Type your article name above or click on one of the titles below and start writing!



CATCRAFT WIKI

MediaWiki:Common.js and MediaWiki:Common.css: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* CSS placed here will be applied to all skins */
// Show the toolbar only for the owner
/* Hide the toolbar for everyone */
mw.loader.using('mediawiki.util', function () {
#p-tb {
    if (mw.config.get('wgUserName') === 'DarkChroma') {
    display: none;
        var toolbar = document.getElementById('p-tb');
}
        if (toolbar) {
            toolbar.style.display = 'block';
        }
    }
});

Revision as of 11:36, 5 May 2023

/* CSS placed here will be applied to all skins */
/* Hide the toolbar for everyone */
#p-tb {
    display: none;
}