Board Thread:Support Requests - Getting Technical/@comment-4018164-20130630192127/@comment-4674838-20130630210616

Note that if you're going to use &lt;verbatim&gt; to run the script, it's going to be executed before Resource Loader has loaded jQuery and MediaWiki's JS API. That's most likely what is causing it to not work, and a reason why you always have to weary when injecting scripts with Verbatim tags.

As a quick test, try putting the script in your MediaWiki:Wikia.js instead and see if it works.