MediaWiki:Common.js

De SSN - Wiki
Revisão de 16h27min de 8 de setembro de 2025 por DoceAzedo (discussão | contribs)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

Nota: Após publicar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5.
  • Opera: Pressione Ctrl-F5.
(() => {
    /*
    * init LucideIcons
    */

    const lucideIconsScript = document.createElement("script");
    lucideIconsScript.setAttribute("src", "https://unpkg.com/lucide@latest/dist/umd/lucide.js");
    document.head.appendChild(lucideIconsScript);

    let lucideIconsTimer;
    lucideIconsTimer = setInterval(() => {
        if (!("lucide" in window)) return;
        lucide.createIcons();
        clearInterval(lucideIconsTimer);
    }, 0);

    /*
    * home highlight video
    */
    const highlightCard = document.getElementById("card-home-highlight");
    if (highlightCard) {
        highlightCard.innerHTML = `<iframe style="width:100%;height:100%" src="https://www.youtube-nocookie.com/embed/J2rSkIkfn2Y?si=Bnokwz16uxery1fW" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`;
    }
})();