Temporary diagnostic
Tag: Reverted
Restore common.js after diagnostic
Tag: Manual revert
Line 3: Line 3:
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.UserStats' );
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 ); } );
}() );

Revision as of 07:09, 12 November 2026

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' );