Difference between revisions of "MediaWiki:Common.js"
| 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. */ | ||
| + | |||
| + | (function () { | ||
| + | |||
| + | var el = document.getElementById('mw-content-text').firstElementChild; | ||
| + | |||
| + | if(!mw.config.values.wgUserId){ | ||
| + | |||
| + | el.style.display = 'none'; | ||
| + | |||
| + | } else { | ||
| + | |||
| + | el.style.display = 'block'; | ||
| + | |||
| + | } | ||
| + | |||
| + | })(); | ||
Revision as of 16:49, 23 October 2017
/* Any JavaScript here will be loaded for all users on every page load. */
(function () {
var el = document.getElementById('mw-content-text').firstElementChild;
if(!mw.config.values.wgUserId){
el.style.display = 'none';
} else {
el.style.display = 'block';
}
})();