Usuário:ChristianH/common.js
Aspeto
Nota: Depois de publicar, poderá ter de contornar a 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.
/**
* Ferramenta de ajustes e traduções em referências (Script de ajustes)
*/
/* Autor: [[User:Luizdl/Script de ajustes.js|Luizdl]] */
mw.loader.load('//pt.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=Usuário:Luizdl/Script de ajustes.js&action=raw&ctype=text/javascript', 'text/javascript');
// @author [[w:pt:User:!Silent]]
// @date 20/jul/2020
( function( window ) {
'use strict';
function checkDeletedPages() {
$( '.oo-ui-fieldLayout-field' ).eq( 0 ).after( '<br /><a id="checkDeletedPages">Selecionar páginas inexistentes</a>' );
$( '#checkDeletedPages' ).click( function() {
$( 'input[type="checkbox"]' ).each( function() {
try {
if ( $( this ).parent().parent().next().find( 'a' ).eq( 0 ).prop( 'href' ).indexOf( 'redlink=1' ) !== -1 )
$( this ).prop( 'checked', true );
} catch ( e ) {}
} );
} );
}
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'EditWatchlist' )
$( checkDeletedPages );
}( window ) );