MediaWiki:Gadget-DeletedContribsTab.js
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.
/*jslint white: true */
/*global mediaWiki, jQuery*/
( function( mw, $ ) {
'use strict';
function deletedContribsTab() {
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 2, 3 ] ) !== -1 ) {
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl(
'Especial:Contribuições eliminadas/'
+ ( mw.config.get( 'wgTitle' ).split( '/', 1 )[ 0 ] || mw.config.get( 'wgTitle' ) )
),
'Contribuições eliminadas',
'ca-deletedcontribs',
'Ver contribuições eliminadas deste usuário'
);
}
}
$( deletedContribsTab );
}( mediaWiki, jQuery ) );