Thread:Iynque/@comment-27111026-20140607032413/@comment-856287-20140607034405

Hmm... well, you could probably add that to the SUP code easily... But I'm not so sure you want to allow users to add their own javascript. They could do all sorts of malicious things to anyone who visits their user page is they get to write their own javascript. CSS has the potential for some bad things too (which is why I don't allow it on my wiki).

If you're the wiki's admin, you can easily create a special JS page in the MediaWiki namespace (like MediaWiki:RoseXinh) and then place it on your user page with verbatim tags like RoseXinh. That way you get to have some special JS, but you don't have to allow for any user to write any code on your wiki. Of course, anyone else can also place the same RoseXinh tags on their own user page (or any wiki page they can edit).

If you really want to allow custom JS on user pages, you could create something like MediaWiki:SUP.js and include the following modified version of SUP: ***I haven't actually tried this code, but it should work.

…and then instead of importing the original source from dev, you would change the import to the local version: