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.
/* Códigos JavaScript aqui colocados serão carregados por todos aqueles que acessarem alguma página deste wiki */ /* Fontes Externas */ mw.loader.using('mediawiki.util', function () { var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = 'https://fonts.googleapis.com/css2?family=Gemunu+Libre:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'; document.head.appendChild(link); }); /* Alterar Texto Logo no Vector 2022 */ $(document).ready(function () { const $wordmark = $('.mw-logo-wordmark'); if ($wordmark.length) { $wordmark.html('CINE<br>LINUX <span class="cine-wiki-label">WIKI</span>'); } }); /* Esse script seleciona todos os links na barra lateral que começam com http (ou seja, links externos) e adiciona target="_blank", fazendo com que abram em nova aba. */ $(document).ready(function () { // Alvo: links externos na barra lateral $('#mw-site-navigation a[href^="http"]').attr('target', '_blank'); }); /* Listar Categorias */ fetch('/api.php?action=query&list=allcategories&aclimit=100&format=json&origin=*') .then(res => res.json()) .then(data => { const ul = document.getElementById('categories-list'); data.query.allcategories.forEach(cat => { const li = document.createElement('li'); const link = document.createElement('a'); const catName = cat['*']; link.href = '/index.php/Category:' + encodeURIComponent(catName); link.textContent = catName; li.appendChild(link); ul.appendChild(li); }); });