... which might be easier but also might cause problems, you could just add this to your LocalSettings.php
:
$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) { $code = <<<'START_END_MARKER' <script></script> <script></script> <script></script> START_END_MARKER; $out->addHeadItem( 'my-wonderful-script', $code ); return true; };
It does exactly the same thing as this extension.