When using the Global Search (ref T219604) tool, there are often two types of search results for pages used as actual gadget definition or JS script, and yet not returned by mwgrep:
- Gadget-definition subpages on incubator.wikimedia.org, such as https://incubator.wikimedia.org/wiki/MediaWiki:Wp/khw/Gadgets-definition.
- Sub pages or JavaScript pages, such as [MediaWiki:Common.js/something](https://en.wikinews.org/wiki/MediaWiki:Common.js/Wikinews:Make_lead). These are often executed via importScript() which does not care about content model, nor that MW doesn't render these as <pre> due to not having the title end in .js. Yet, these are executed as real scripts and should be included.
This task is to update mwgrep so that these are included in the results as well.
(As for why I use mwgrep with this tool existing. It is mainly because of the machine-readable format of its results, it not being as lagged/slow, and to get a sense of which deprecated scripts are used on private wikis prior to removing features from MW core.)