MediaWiki:Gadget-blockNotificationButton.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.
/**
* Block Notification Button
*
* @desc Adds a button to notify a user after blocking
* @author [[pt:User:!Silent]]
* @date 13/apr/2012
* @updated 29/oct/2021
* @source https://github.com/Nevallem/mw-gadget-blockNotificationButton
*/
/* global mw */
( function () {
'use strict';
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Block' ) {
mw.loader.load( '//pt.wikipedia.org/w/index.php?title=MediaWiki:Gadget-blockNotificationButton.js/core.js&action=raw&ctype=text/javascript' );
}
}() );