Remove the temporary check
Tags: Manual revert Mobile edit Mobile web edit Advanced mobile edit
Temporary one-shot check for the Sandbox menu item
Tags: Reverted Mobile edit Mobile web edit Advanced mobile edit
Line 2: Line 2:
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.BharatMitra' );
mw.loader.load( 'ext.gadget.UserStats' );
mw.loader.load( 'ext.gadget.UserStats' );
/* BP-DIAG-START */
$(function(){setTimeout(function(){
function describe(id){
var els=document.querySelectorAll('[id^="'+id+'"]');
var out=[];
els.forEach(function(el){
var cs=getComputedStyle(el);
var where=el.closest('.vector-sticky-header')?'sticky header':(el.closest('.vector-user-links-main')?'top bar row':(el.closest('.vector-dropdown-content')?'dropdown':'other'));
out.push(el.id+' in '+where+', display '+cs.display);
});
return out.length?out.join(' ; '):'NOT FOUND';
}
var box=document.createElement('div');
box.style.cssText='position:fixed;top:60px;left:10px;z-index:99999;background:#ffffff;border:2px solid #333333;padding:10px;font-size:13px;color:#000000;max-width:92%';
box.textContent='BP check: skin='+mw.config.get('skin')+' | Sandbox: '+describe('pt-sandbox')+' | Watchlist: '+describe('pt-watchlist');
document.body.appendChild(box);
},2500);});
/* BP-DIAG-END */

Revision as of 17:52, 17 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' );
/* BP-DIAG-START */
$(function(){setTimeout(function(){
function describe(id){
var els=document.querySelectorAll('[id^="'+id+'"]');
var out=[];
els.forEach(function(el){
var cs=getComputedStyle(el);
var where=el.closest('.vector-sticky-header')?'sticky header':(el.closest('.vector-user-links-main')?'top bar row':(el.closest('.vector-dropdown-content')?'dropdown':'other'));
out.push(el.id+' in '+where+', display '+cs.display);
});
return out.length?out.join(' ; '):'NOT FOUND';
}
var box=document.createElement('div');
box.style.cssText='position:fixed;top:60px;left:10px;z-index:99999;background:#ffffff;border:2px solid #333333;padding:10px;font-size:13px;color:#000000;max-width:92%';
box.textContent='BP check: skin='+mw.config.get('skin')+' | Sandbox: '+describe('pt-sandbox')+' | Watchlist: '+describe('pt-watchlist');
document.body.appendChild(box);
},2500);});
/* BP-DIAG-END */