MediaWiki:Common.js: mudanças entre as edições
Aparência
JS mínimo para modo escuro permanente |
Garantindo logo nova e painel de aparência |
||
| Linha 1: | Linha 1: | ||
/* === TOKUDRIVE_FIX_LOGO_MENUS_JS_BEGIN === */ | |||
(function () { | (function () { | ||
function | function fixLogoMenus() { | ||
document.querySelectorAll('input[name="search"], .cdx-text-input__input, .vector-search-box-input').forEach(function (input) { | document.querySelectorAll('input[name="search"], .cdx-text-input__input, .vector-search-box-input').forEach(function (input) { | ||
input.placeholder = 'Pesquisar na Wiki TokuDrive'; | input.placeholder = 'Pesquisar na Wiki TokuDrive'; | ||
| Linha 11: | Linha 12: | ||
logo.setAttribute('title', 'Wiki TokuDrive'); | logo.setAttribute('title', 'Wiki TokuDrive'); | ||
logo.setAttribute('aria-label', 'Wiki TokuDrive'); | logo.setAttribute('aria-label', 'Wiki TokuDrive'); | ||
logo.style.background = 'transparent'; | |||
logo.style.boxShadow = 'none'; | |||
logo.style.borderRadius = '0'; | |||
}); | |||
document.querySelectorAll('.vector-appearance-landmark, .vector-appearance, #vector-appearance').forEach(function (el) { | |||
el.style.display = 'block'; | |||
el.style.visibility = 'visible'; | |||
el.style.opacity = '1'; | |||
}); | }); | ||
} | } | ||
if (document.readyState === 'loading') { | if (document.readyState === 'loading') { | ||
document.addEventListener('DOMContentLoaded', | document.addEventListener('DOMContentLoaded', fixLogoMenus); | ||
} else { | } else { | ||
fixLogoMenus(); | |||
} | } | ||
setTimeout( | setTimeout(fixLogoMenus, 400); | ||
setTimeout( | setTimeout(fixLogoMenus, 1200); | ||
})(); | })(); | ||
/* === TOKUDRIVE_FIX_LOGO_MENUS_JS_END === */ | |||
Edição das 17h21min de 28 de junho de 2026
/* === TOKUDRIVE_FIX_LOGO_MENUS_JS_BEGIN === */
(function () {
function fixLogoMenus() {
document.querySelectorAll('input[name="search"], .cdx-text-input__input, .vector-search-box-input').forEach(function (input) {
input.placeholder = 'Pesquisar na Wiki TokuDrive';
});
document.querySelectorAll('.mw-logo').forEach(function (logo) {
logo.setAttribute('title', 'Wiki TokuDrive');
logo.setAttribute('aria-label', 'Wiki TokuDrive');
logo.style.background = 'transparent';
logo.style.boxShadow = 'none';
logo.style.borderRadius = '0';
});
document.querySelectorAll('.vector-appearance-landmark, .vector-appearance, #vector-appearance').forEach(function (el) {
el.style.display = 'block';
el.style.visibility = 'visible';
el.style.opacity = '1';
});
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', fixLogoMenus);
} else {
fixLogoMenus();
}
setTimeout(fixLogoMenus, 400);
setTimeout(fixLogoMenus, 1200);
})();
/* === TOKUDRIVE_FIX_LOGO_MENUS_JS_END === */