Add a temporary one-shot test for the automatic warning
Tag: Reverted
Remove the temporary one-shot test, restoring the previous common.js
Tag: Reverted
Line 4: Line 4:
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.UserStats' );
mw.loader.load( 'ext.gadget.UserStats' );
/* Temporary one-shot test for the automatic warning; removed right after the test. */
if ( new URLSearchParams( location.search ).get( 'bmtest' ) === 'autowarn' ) {
mw.loader.using( [ 'ext.gadget.BharatMitra', 'ext.gadget.BharatMitra-warn' ] ).then( function () {
return window.BharatMitra.modules.warn.sendAuto( 'Bharatwiki Socrates/autowarn-test', 'vandalism', 'Bharatpedia:Bharat Mitra' );
} ).then( function ( plan ) {
if ( mw.notify ) { mw.notify( 'Autowarn test sent, level ' + plan.level ); }
}, function ( err ) {
if ( mw.notify ) { mw.notify( 'Autowarn test failed: ' + err, { type: 'error' } ); }
} );
}

Revision as of 11:54, 10 November 2026

mw.loader.load('/w/index.php?title=User:WikiDwarf/AntiVandal.js&action=raw&ctype=text/javascript');
mw.loader.load('/w/index.php?title=MediaWiki:Gadget-OneClickArchiver.js&action=raw&ctype=text/javascript&maxage=0&smaxage=0&t=' + Date.now());
mw.loader.load( 'ext.gadget.Twinkle' );
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.UserStats' );