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.
mw.loader.load('https://en.bharatpedia.org/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' );


( function () {
	if ( sessionStorage.getItem( 'bmDiagDone' ) ) { return; }
	sessionStorage.setItem( 'bmDiagDone', '1' );
	function show( txt ) {
		var d = document.createElement( 'pre' );
		d.id = 'bm-diag';
		d.textContent = txt;
		document.body.appendChild( d );
		document.title = 'DIAG DONE';
	}
	mw.loader.using( 'ext.gadget.BharatMitra-warn' ).then( function () {
		var src = ( window.BharatMitra && BharatMitra.modules && BharatMitra.modules.warn ) ? BharatMitra.modules.warn.sendAuto.toString() : 'NOT REGISTERED';
		var ver = mw.loader.getVersion ? mw.loader.getVersion( 'ext.gadget.BharatMitra-warn' ) : 'n/a';
		var out = 'sendAuto has reportToAIV: ' + ( src.indexOf( 'reportToAIV' ) !== -1 ) + '\nversion: ' + ver + '\nsendAuto first120: ' + src.slice( 0, 120 );
		return fetch( '/w/load.php?lang=en&modules=ext.gadget.BharatMitra-warn&only=scripts&skin=vector&version=' + ver ).then( function ( r ) {
			return r.text().then( function ( t ) {
				out += '\nfetch status: ' + r.status + '\nfetch length: ' + t.length + '\nfetch has reportToAIV: ' + ( t.indexOf( 'reportToAIV' ) !== -1 ) + '\nfetch has AIV_BOARD: ' + ( t.indexOf( 'AIV_BOARD' ) !== -1 );
				show( out );
			} );
		} );
	} ).catch( function ( e ) { show( 'ERROR ' + e ); } );
}() );