User:Nardog/RefRenamer

RefRenamer
DescriptionReplaces reference names like ":0" with descriptive ones like "Smith-2015"
UpdatedAugust 13, 2023
    (15 months ago)
BrowsersChrome, Firefox, etc. (ES2019+ needed)
Source

This is a script for replacing the name attributes of <ref> tags with something descriptive like "Smith-2015". It was developed with focus on names like ":0", ":1" and so on, which are generated by VisualEditor, so by default it only renames them, but you can rename other names found in the source as well.

Installing it adds the link "RefRenamer" to the Tools section of the sidebar on pages related to existing wikipages, which opens a dialog. If it's opened while editing, the source in the edit box will be parsed (slower); otherwise the latest version of the page will be analyzed.