User:Bhairava7/revert-and-block.js: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
m Bhairava7 moved page User:Kiteretsu/revert-and-block.js to User:Bhairava7/revert-and-block.js without leaving a redirect |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
$( function () { |
$( function () { |
||
var ADVERT = " ([[User:Infinityboy7/revert-and-block|RNB]])"; |
var ADVERT = " ([[User:Infinityboy7/revert-and-block|RNB]])"; |
||
var IP_BLOCK_LENGTH = window.revertAndBlockIpBlockLength || " |
var IP_BLOCK_LENGTH = window.revertAndBlockIpBlockLength || "custom reason"; |
||
if( mw.config.get( "wgAction" ) === "history" ) { |
if( mw.config.get( "wgAction" ) === "history" ) { |
||
mw.loader.using( [ "mediawiki.util", "mediawiki.api" ] ).then( function () { |
mw.loader.using( [ "mediawiki.util", "mediawiki.api" ] ).then( function () { |
||