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.BharatMitra' );
mw.loader.load( 'ext.gadget.UserStats' );

/* BM-DIAG7-START */
$( function () {
	if ( mw.config.get( 'wgPageName' ) !== 'Narendra_Modi_and_the_Dawoodi_Bohra_community' ) { return; }
	var box = document.createElement( 'div' );
	box.id = 'bm-diag-box';
	box.style.cssText = 'position:fixed;top:0;left:0;z-index:99999;background:#ffffff;color:#000000;font-size:13px;padding:10px;border:3px solid red;max-width:95%;word-break:break-all;';
	box.textContent = 'BM-DIAG7: working';
	document.body.appendChild( box );
	setTimeout( function () {
		function st( name ) {
			try { return mw.loader.getState( name ); } catch ( e ) { return 'EXC:' + e; }
		}
		var lines = [];
		lines.push( 'BM=' + st( 'ext.gadget.BharatMitra' ) );
		lines.push( 'notify=' + st( 'mediawiki.notify' ) );
		lines.push( 'api=' + st( 'mediawiki.api' ) );
		lines.push( 'util=' + st( 'mediawiki.util' ) );
		lines.push( 'mwNotifyType=' + typeof ( mw && mw.notify ) );
		lines.push( 'pageHasBharatMitraText=' + ( document.body.innerHTML.indexOf( 'Bharat Mitra' ) !== -1 ) );
		box.textContent = 'BM-DIAG7: ' + lines.join( ' ;; ' );
	}, 6000 );
} );
/* BM-DIAG7-END */