TL;DR: A Node.js interactive command-line tool for fixing use of deprecated javascript functions in on-wiki javascript.
https://github.com/Krinkle/mw-tool-tourbot
In 2011 I started a clean up of site scripts (the "Tour"). You can work on the tour either per-issue (e.g. remove IE60Fixes from all wikis) or per-wiki (e.g. pick a wiki and recurse through the checklist) [1]. I usually mwgrep for a single issue pattern, and then slowly go per-wiki on the results.
The current migration is for legacy wikibits [2]. I'm hoping to remove deprecated wikibits methods in MediaWiki 1.28 [3].
The vast majority of patterns can be safely removed (no replacement) as they've been silently disabled for 3 years (since 2013, MediaWiki 1.22) [5]. Removal usually requires manual editing of a script.
Other patterns are simple find-and-replace subjects. To aid in migration of those, mwgrep can be used to find relevant pages across Wikimedia wikis [6]. Because mwgrep currently requires production access I've published a few lists you can work from. (see [7] for making mwgrep public)
https://gist.github.com/Krinkle/a18e726fc3af30f30bf9b2ba919820b5#mwgrep-resu...
Feel free to request additional searches or updates, there.
I'm hoping this will help lower legacy wikibits usage. See Grafana for progress so far (I first ran tourbot on June 12): https://grafana.wikimedia.org/dashboard/db/mw-js-deprecate
-- Krinkle
[1] https://meta.wikimedia.org/wiki/User:Krinkle/Le_Tour_de_Wik%C3%AD/2011_Resou... [2] https://www.mediawiki.org/wiki/ResourceLoader/Legacy_JavaScript [3] https://phabricator.wikimedia.org/T122755 [4] https://www.mail-archive.com/wikitech-l%40lists.wikimedia.org/msg84465.html [5] https://gist.github.com/Krinkle/11405589 [6] https://wikitech.wikimedia.org/wiki/mwgrep [7] https://phabricator.wikimedia.org/T71489
wikitech-l@lists.wikimedia.org