User blog comment:Kirkburn/Technical Update: September 2, 2015/@comment-3388044-20150904013930/@comment-24757753-20150904095945

A strong +1 to this. I have a few scripts from Dev Wiki that I customised to my tastes in my userspace, and it's easier (for me at least) to have them in separate pages and import them, rather than make my global.js page giant!

Really, it's odd they prevented editing any page where the page name ends in '.js'. A bit of a security farce, considering pages ending with '.js' don't necessarily contain JavaScript code (I'm sure a few actual article pages have probably been affected by this), and pages containing JavaScript code don't have to end in '.js' (as proven by the various methods people used to get around this).

For now, I've just moved them to page names with '.css' suffix - that way I can edit them, but they're still protected from editing by others. Syntax highlighting ends up a little odd, but that's not a big deal.