Board Thread:Watercooler/@comment-24473195-20160526110434/@comment-24473195-20160526224900

Saftzie wrote: .origin is not supported in all browsers. Just "/wiki/MediaWiki:Custom-jumblesdata.json?action=raw" is good enough, anyway.

Ideally the configuration location itself should be configurable. Someone may want to import a script, but use their own configuration. Sure, the origin thing was just a quick hack, although I didn't really check browser support.

Also agreed on the second point. The configuration itself relies on the current wiki. So it doesn't particularly matter what configuration is in dev.wikia. It just falls back to the default if the configuration file doesn't exist in local wiki".

Something like:

I'm not sure whether it makes more sense to use ajax to pick up the config, or simply to load the configuration using importarticles by loading it before the main script. The latter might be more efficient once cached. The most important thing is clearly separating the configuration from the localization files.