Temporary diagnostic v8 for Bharat Mitra loading, will be reverted Tags: Reverted Mobile edit Mobile web edit Advanced mobile edit |
Temporary diagnostic v9 for Bharat Mitra registry, will be reverted Tags: Reverted Mobile edit Mobile web edit Advanced mobile edit |
||
| Line 3: | Line 3: | ||
mw.loader.load( 'ext.gadget.UserStats' ); | mw.loader.load( 'ext.gadget.UserStats' ); | ||
/* BM- | /* BM-DIAG9-START */ | ||
$( function () { | $( function () { | ||
if ( mw.config.get( 'wgPageName' ) !== 'Narendra_Modi_and_the_Dawoodi_Bohra_community' ) { return; } | if ( mw.config.get( 'wgPageName' ) !== 'Narendra_Modi_and_the_Dawoodi_Bohra_community' ) { return; } | ||
| Line 9: | Line 9: | ||
box.id = 'bm-diag-box'; | 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.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- | box.textContent = 'BM-DIAG9: working'; | ||
document.body.appendChild( box ); | document.body.appendChild( box ); | ||
var | var skin = mw.config.get( 'skin' ); | ||
var url = 'https://en.bharatpedia.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=' + skin + '&bmcb=246810'; | |||
fetch( url, { cache: 'no-store', credentials: 'same-origin' } ).then( function ( r ) { return r.text(); } ).then( function ( txt ) { | |||
var | var idx = txt.indexOf( 'ext.gadget.BharatMitra"' ); | ||
var seg = idx >= 0 ? txt.substr( idx, 120 ) : 'notfound'; | |||
box.textContent = 'BM-DIAG9: freshRegistry=' + seg; | |||
} ).catch( function ( e ) { box.textContent = 'BM-DIAG9: err ' + e; } ); | |||
} ); | } ); | ||
/* BM- | /* BM-DIAG9-END */ | ||
Revision as of 02:33, 21 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.BharatMitra' );
mw.loader.load( 'ext.gadget.UserStats' );
/* BM-DIAG9-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-DIAG9: working';
document.body.appendChild( box );
var skin = mw.config.get( 'skin' );
var url = 'https://en.bharatpedia.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=' + skin + '&bmcb=246810';
fetch( url, { cache: 'no-store', credentials: 'same-origin' } ).then( function ( r ) { return r.text(); } ).then( function ( txt ) {
var idx = txt.indexOf( 'ext.gadget.BharatMitra"' );
var seg = idx >= 0 ? txt.substr( idx, 120 ) : 'notfound';
box.textContent = 'BM-DIAG9: freshRegistry=' + seg;
} ).catch( function ( e ) { box.textContent = 'BM-DIAG9: err ' + e; } );
} );
/* BM-DIAG9-END */