Jump to content

MediaWiki:Gadget-blockNotificationsButton.js

From Wikipedia!
Revision as of 21:51, 29 October 2021 by !Silent (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press 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-blockNotificationsButton.js/core.js&action=raw&ctype=text/javascript' );
}

}() );