// ==UserScript==
// @name           WoW Forums URL changer
// @namespace      http://www.dushkin.org/
// @description    Automatically changes URLs in text into links.
// @include        http://forums.worldofwarcraft.com/*
// @include        http://forums.wow-europe.com/*
// ==/UserScript==

function replaceURLWithHTMLLinks(text) {
    var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
    return text.replace(exp,"<a href='$1'>$1</a>"); 
}

var t = document.getElementsByClassName("message-format");
for (var i = 0; i < t.length; i++) {
t[i].innerHTML = replaceURLWithHTMLLinks(t[i].innerHTML);
}