MediaWiki talk:Gadget-markAdmins-data.json/Archives/2022

From Meta, a Wikimedia project coordination wiki

Time to automate things up?

I wrote a JS script that can automatically get 99% of the list apart from Temporary admins. Any admin interested in this request may need to have some basic knowledge about JS for loops and if ... else ... conditions since it is a bit intricate. These are the main differences between their output (both cleaned up by pasting into browser console before added to wikipage).

If my script gets approved, the list will need to be re-converted to JS. Some minor changes may also be needed as I'm not sure about how to load MA.d into the main script and browser compatibility. NguoiDungKhongDinhDanh 23:23, 6 April 2022 (UTC)

@NguoiDungKhongDinhDanh What is the request here? We switched to JSON to make it easier to update by non-interface-admins, and we have a dedicated data file so that the information doesn't need to be queried on every page view, etc. DannyS712 (talk) 05:08, 14 April 2022 (UTC)
My request is to automate the process of querying, but you're right that complex for loops and conditions are bad in term of performance. Request withdrawn. NguoiDungKhongDinhDanh 08:33, 14 April 2022 (UTC)