MediaWiki:Common.js: Difference between revisions
Appearance
Created page with "→Any JavaScript here will be loaded for all users on every page load.: mw.loader.using('mediawiki.util').then(function () { var appearanceSection = document.querySelector('#p-appearance'); if (appearanceSection && appearanceSection.classList.contains('collapsed')) { appearanceSection.classList.remove('collapsed'); } });" |
(No difference)
|
Revision as of 13:52, 23 January 2025
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.using('mediawiki.util').then(function () {
var appearanceSection = document.querySelector('#p-appearance');
if (appearanceSection && appearanceSection.classList.contains('collapsed')) {
appearanceSection.classList.remove('collapsed');
}
});