Thread:JoePlay/@comment-4190137-20120915235520/@comment-171752-20120917162350

Even if that is possible with JS, I would recommend using AutoWikiBrowser to do it (available for free at [http://sourceforge.net/projects/autowikibrowser/ SourceForge). AWB has the ability to find and replace text on all pages that you tell it to scan. In this case, you could load all the wiki's pages and tell it to find Merlin and replace with Merlin.

AWB has lots of capabilities and is a very useful tool. I've been using it off and on for a few years.

If you decide to give it a try, here's the basic info to get it setup. After you've downloaded it and launch it, go to Options > Preferences (or Ctrl+F5). Click the Site tab and on the Project drop-down, choose custom. Then next to http:// enter merlin.wikia.com and click OK. (Tip: to avoid having to do that every time you run AWB, go to File > Save settings as default.) Now go to File > Log In/Profiles and enter the username and password of your Wikia account.

To enable the find and replace function, on the bottom middle section click the Options tab (may selected by default) and check the box marked Enabled under Find and replace. Then click the Normal settings button, which opens a window. Here, enter the Find text and the Replace with text and click Done. To prevent AWB from stopping on pages where Merlin (the Find text) does not appear, check the box marked Skip if no replacement.

Now you need to tell AWB which pages to scan. On the bottom left section, named Make list, you'll see a drop-down next to Source that contains lots of options. If you want to load all the wiki's pages, choose Special page from the drop-down. Then click the Make list button, which opens a small window. Here, choose All Pages from the drop-down and click OK. This will load every page into the box in the Make list section. When you're ready to begin, click the Start tab and click the Start button. (Note: if you forgot to log in, you will be prompted to do so.)

AWB should now begin scanning the pages on the list. Each time it finds Merlin on a page, the program will display what resembles a wiki diff page in the upper half of the window. This shows you the original form of the text (on the left) and the proposed edit to it (on the right). In the bottom right section, the page's wiki code appears. This is where you can make any manual edits that you want in addition to the edits being made by AWB. If you agree with the edit(s) being suggested by AWB (which you should in this case, as you're simply looking for a specific word and wrapping it with brackets), then click the Save button, and AWB will make the edit and continue scanning the pages on the list.