User:Nardog/Unpipe

This script adds a button to the sidebar that converts piped links to non-piped ones where doing so does not change the destination of the link, to comply with WP:NOPIPE and WP:NOTBROKEN. That is, if both "Foo" and "bar" in  lead to the same article or section directly or indirectly (i.e. through a redirect or not), it's converted to. Links to non-main namespaces and to redirects ending in " (disambiguation)" will not be replaced. The button is available only in source mode (not 2017 editor).

Installation
Add the following to your common.js:

Or you may enable the script installer in and click "Install" in the infobox on this page.

Acknowledgements
This script relies on Pathoschild's TemplateScript framework.