User:MarkS/extraeditbuttons.js: Difference between revisions

Content deleted Content added
mwEditButtons has been empty for years, it is no longer possible to remove standard buttons. And even years ago when it was possible, it was not a feature, but a bug (internal variable that leaked in global scope).
Migration: wg* → mw.config.get('wg*'). Global config variables are deprecated since MW 1.17 and, if $wgLegacyJavaScriptGlobals is false (as in test2wiki:), they can only be accessed through mw.config
Line 94:
 
addOnloadHook(initButtons);
if(!mw.config.get('wgIsArticle'))// only if edit
{
 
Line 894:
function bug(msg)
{
if(mw.config.get('wgUserName')=='MarkS')alert(msg);
}