MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* Derived from w:User:Bellezzasolo/Scripts/subpages */ var namespace = mw.config.get( 'wgCanonicalNamespace' ); // As suggested by w:User:DannyS712 if ( namespace === 'User' || namespace === 'User_talk' ) { $.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { mw.util.addPortletLink( 'p-tb', mw.util.getUrl( 'Special:NewItem' ), '',   't-special-newitem', '   null, '#pt-preferences' ); }); }