Diagnostic for mw.Api Tag: Reverted |
Diagnostic ES5 only Tag: Reverted |
||
| 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' ); | ||
try{document.title=' | try{document.title='DIAG5 '+(typeof mw.Api);}catch(e){try{document.title='DIAG5ERR';}catch(e2){}} | ||
$(function(){var s='mwApi='+typeof mw.Api+' user='+mw.config.get('wgUserName') | $(function(){var s='mwApi='+typeof mw.Api+' user='+mw.config.get('wgUserName');var d=document.createElement('div');d.id='diag5';d.textContent='DIAG5 '+s;document.body.appendChild(d);mw.loader.using('mediawiki.api').then(function(){var d3=document.createElement('div');d3.id='diagusing5';d3.textContent='USING5 OK mwApi='+typeof mw.Api;document.body.appendChild(d3);},function(e){var d3=document.createElement('div');d3.id='diagusing5';d3.textContent='USING5 FAIL '+e;document.body.appendChild(d3);});}); | ||
Revision as of 05:11, 13 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' );
try{document.title='DIAG5 '+(typeof mw.Api);}catch(e){try{document.title='DIAG5ERR';}catch(e2){}}
$(function(){var s='mwApi='+typeof mw.Api+' user='+mw.config.get('wgUserName');var d=document.createElement('div');d.id='diag5';d.textContent='DIAG5 '+s;document.body.appendChild(d);mw.loader.using('mediawiki.api').then(function(){var d3=document.createElement('div');d3.id='diagusing5';d3.textContent='USING5 OK mwApi='+typeof mw.Api;document.body.appendChild(d3);},function(e){var d3=document.createElement('div');d3.id='diagusing5';d3.textContent='USING5 FAIL '+e;document.body.appendChild(d3);});});