User:PolyBOT/code

This code is released under the GPL v3 or later.

It locates pages with, and  in them. To replace them with, and  or ,  as the case may be. That's the automatic part of it. Then it becomes interactive, so it's likely some more changes will be added manually.