MediaWiki:Gadget-PagesForDeletion.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.
// [[File:User:He7d3r/Tools/PagesForDeletion.js]] (workaround for [[phab:T35355]])
/*jslint white: true */
/*global mediaWiki, jQuery */
/**
* Loader for the PagesForDeletion gadget
* @author: Helder (https://github.com/he7d3r)
* @license: CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0/>
*/
( function ( mw, $ ) {
'use strict';
if ( $.inArray( mw.config.get('wgAction'), ['view', 'purge'] ) !== -1 ) {
$(function () {
if ( $('#pe-header').length !== 0 ) {
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/PagesForDeletion.js&action=raw&ctype=text/javascript' );
}
});
}
}( mediaWiki, jQuery ) );