Board Thread:Script Suggestions/@comment-1158325-20160320103956/@comment-24473195-20160320141426

Sounds very hacky. It seems that Staff's interpretation of the gadget extension is accurate for the existing version. The newer version gadgets 2.0  (still under development) doesn't place anything in the MediaWiki namespace, it instead places it in :


 * Gadgets: .e.g Gadgets:Bamboo.js


 * Gadget definition : Gadgets-definition:Bamboo

So in fact it might be far easier to vet a dedicated namespace strictly meant for Javascript.

Currently, the newer version hasn't been deployed or widely  tested, and given WMF's development process it might take months or years to get merged and deployed. More importantly, the new gadget extension will probably be incompatible with Wikia's mediawiki and they may be unwilling to dedicate time to backport it.

Meanwhile, you could try and implement an GUI for MediaWiki:ImportJs and create a similar version for users, e.g. User:Banana/Special:ImportJS that will add/remove/edit all appropriate gadgets.