MediaWiki:YouShallNotPass/code.js

// You Shall Not Pass Script // Personal only !function(window) { 'use strict'; var i18n = { // Translations goes here en: 'You shall not pass!', ru: 'Ты не пройдёшь!', },       d = window.document, $s = d.querySelector(           ':not(.editpage-intro-wrapper) .permissions-errors'        ), l = window.mediaWiki.config.get('wgUserLang'); if (typeof $s === 'undefined') return; window.importArticle({       type: 'style',        article: 'u:dev:MediaWiki:YouShallNotPass/style.css'    }); var elem = d.createElement('div'); elem.classList.add('ysnp'); elem.innerHTML = i18n[l] || i18n.en; $s.innerHTML = ''; $s.insertBefore(elem, $s.firstChild); }(this || window);