MediaWiki talk:Common.js

addOnloadHook error
Just a heads up, addOnloadHook was removed in MediaWiki 1.27. These two lines cause a runtime error and should be replaced: var addLoadEvent = addOnloadHook; addLoadEvent(createNavigationBarToggleButton);

The metawiki suggests using jQuery's basic handler instead: $( createNavigationBarToggleButton );

If you want to restrict it to wiki content,  also works: mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton ); 75.50.101.137 22:06, 11 May 2017 (UTC)