Mudanças entre as edições de "MediaWiki:Common.js"
Página de Interface do MediaWiki
| Linha 11: | Linha 11: | ||
window.location.reload(); | window.location.reload(); | ||
} | } | ||
// correção de links de moderação | |||
$('.modline').each(function(index, elem){ | |||
var teste = $(elem).find('a')[3]; | |||
$(teste).attr('href',$($(elem).find('a')[1]).attr('href')); | |||
}); | |||
Edição das 16h52min de 17 de outubro de 2022
if($('meta[name="wiki_dev__login"]')[0].content === 'false'){
$('#mw-drawer-button-icon').css('display', 'none');
$('#mw-drawer-button').css('display', 'none');
$('#header-pagetitle').css('margin', '20px')
$('#header-sitetitle').css('margin', '20px')
}
//teste e correção de tema
if(localStorage.getItem('skin-citizen-theme') != 'light'){
localStorage.setItem('skin-citizen-theme', 'light');
window.location.reload();
}
// correção de links de moderação
$('.modline').each(function(index, elem){
var teste = $(elem).find('a')[3];
$(teste).attr('href',$($(elem).find('a')[1]).attr('href'));
});