Script Summary: Changes all links to TB, Allak, or WoWDB to point to Wowhead instead.
This script searches for links to World of Warcraft database sites other than Wowhead (currently Thottbot, Allakhazam, and WoWDB) and rewrites them to point to the equivalent page on Wowhead. If it finds any links, the Wowhead tooltip script is also added to the page.
By default, this script does not rewrite links on Thottbot, Allakhazam, or WoWDB (on the theory that if you're already there, you want to stay). If you want to change this, just remove those sites from the script's exclusion list.
Currently, almost — but not quite — all link types are handled. If you find a link which doesn't get translated, or you'd like another database site added, let me know!