+ /**
+ * Return a random selection of the scripts we want in the header,
+ * according to no particular rhyme or reason. Various other scripts are
+ * returned from a haphazard assortment of other functions scattered over
+ * various files. This entire hackish system needs to be burned to the
+ * ground and rebuilt.
+ *
+ * @var $allowUserJs bool Should probably be identical to $wgAllowUserJs,
+ * but is passed as a local variable for some
+ * obscure reason.
+ * @var $extraHtml string A bunch of raw HTML to jam into some arbitrary
+ * place where MonoBook has historically wanted it.
+ * Old-style skins formerly put it in a different
+ * place, but if either of those is broken it's
+ * likely to be the old-style skins.
+ * @return string Raw HTML to output in some location in the <head> that's
+ * entirely arbitrary but which will probably break
+ * everything if you put it someplace else.
+ */
+ function getHeadScripts( $allowUserJs, $extraHtml = '' ) {