Board Thread:Support Requests - Getting Technical/@comment-4748628-20140619033512/@comment-4748628-20140619150520

Penguin-Pal wrote: There are two ways for doing this:

(although this particular way isn't exactly what you're looking for) if If you have access to MediaWiki pages in a given wiki (e.g. you're an admin) and want to make special JS/CSS pages just for chat, follow the instructions here

If you want to only personally import your global css/js files, you can use something like this in your global.js, based on : Refreshing wouldn't re-load the script, but it is technically possible if you use further scripts for detecting key events, to detect if the key code is 116 (F5).

But a note about that- if you choose to load your global js to chat for some reason, it's recommended that you use an  statement, to choose what stuff to load on chat and what not to load. Oooh that's a much cleaner way to do it! At least until the support is there.

UltimateSupreme wrote: Kamikaze839 wrote: But to do that you have to "click the join chat button" right? That's done by code in chathacks, which modifies things to make it work. I want to know why it's not supported by the Chat extension. Its a work in progress to load js into Chat by default. A work in progress? Why wouldn't it be as simple as this? importScriptPage("Special:MyPage/global.js", "c"); importScriptPage("Special:MyPage/wikia.js");