MediaWiki talk:Gadget-markAdmins-data.json/Archives/2022
Latest comment: 2 years ago by NguoiDungKhongDinhDanh in topic Time to automate things up?
Please do not post any new comments on this page. This is a discussion archive first created in 2022, although the comments contained were likely posted before and after this date. See current discussion or the archives index. |
Time to automate things up?
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)