Ir para o conteúdo

MediaWiki:Common.js: mudanças entre as edições

De Wiki TokuDrive
Garantindo logo nova e painel de aparência
JS final da Wiki TokuDrive
Linha 1: Linha 1:
(function () {
  function fixWiki() {
    document.documentElement.classList.add('skin-theme-clientpref-night');
    document.body.classList.add('skin-theme-clientpref-night');


/* === 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) {
     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 14: Linha 13:
       logo.style.background = 'transparent';
       logo.style.background = 'transparent';
       logo.style.boxShadow = 'none';
       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', fixLogoMenus);
     document.addEventListener('DOMContentLoaded', fixWiki);
   } else {
   } else {
     fixLogoMenus();
     fixWiki();
   }
   }


   setTimeout(fixLogoMenus, 400);
   setTimeout(fixWiki, 500);
   setTimeout(fixLogoMenus, 1200);
   setTimeout(fixWiki, 1500);
})();
})();
/* === TOKUDRIVE_FIX_LOGO_MENUS_JS_END === */

Edição das 17h27min de 28 de junho de 2026

(function () {
  function fixWiki() {
    document.documentElement.classList.add('skin-theme-clientpref-night');
    document.body.classList.add('skin-theme-clientpref-night');

    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';
    });
  }

  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', fixWiki);
  } else {
    fixWiki();
  }

  setTimeout(fixWiki, 500);
  setTimeout(fixWiki, 1500);
})();