We want a list of possible names of the Reference Tooltip gadget. This way we can disable it, when a conflicting gadget is active.
@JStrodt_WMDE found a [[ https://meta.wikimedia.org/wiki/Gadgets/wikipedia/default | list of wikis ]] that use `referenceTooltips` in upper and lowercase. This conflicts with what we found before via {T234204}.
Tasks:
[x] Run some script and create an up-to-date list of wikis where `referenceTooltips` is lowercase.
[x] Look for other names with a regex like `/.*ref.*tool.*/i`.
[x] Update configuration with what we found.
###Outcome
Code: [[ https://gitlab.com/wmde/gadget-checker | gitlab.com/wmde/gadget-checker]]
Result: [[ https://gitlab.com/wmde/gadget-checker/-/blob/master/output.csv | csv ]] | [[ https://docs.google.com/spreadsheets/d/1JfkqvdhqrT7gXb1pDKWhqE2yaV-HcZe9pH4VGyJtoTs | spreadsheet
]]
###Implementation
# Iterate over [[ https://www.mediawiki.org/w/api.php?action=sitematrix | all wikis ]] ([[ https://www.mediawiki.org/wiki/API:Client_code | API libraries ]])
# Look for the gadget in each wiki:
# Search through the gadgets of each wiki (via gadget API - [[ https://en.wikipedia.org/w/api.php?action=query&list=gadgets&gaprop=id%7Cmetadata%7Cdesc | example ]]) for the ReferenceTooltip data by applying loose rules which match against script and style files, and gadget name. Overcollect rather than undercollect. Look for other names with a regex like `/.*ref.*tool.*/i`.
# Using the page search to look for raw source for MediaWiki:Gadgets-definition and searching for ReferenceTooltips.js. It's also possible that the javascript file has been renamed.
# Store data (wiki, referenceTooltip installed: true/false, enabled by default: true/false, custom name) in a suitable form.