Thread:User talk:Kephir/Template:catfix gadget improvements/reply

It sits in MediaWiki:Gadget-legacy.js. Look for " ". It should be probably re-written and migrated to MediaWiki:Common.js. (You could have found that yourself, you know. Either scroll to the bottom of MediaWiki:Common.js or Special:Search for "CATFIX" in MediaWiki and User namespaces. The first is the more reliable.)

As for the first question, use js. A link to its documentation I have put in — it is lumped with the rest of ResourceLoader docs. As for the second, I think a JavaScript framework of sorts should be created for accessing languages and scripts data. I have some ideas about how to create one, but I am not going to put them into reality any time soon. Use the default script in the meantime, I guess. But when it is done, the JS could download character ranges directly from Module:scripts/data (caching them in localStorage), and then use them to perform script detection in JS. (Or we could just have WebFonts handle it…)