Bahamut Redirector

var url = location.href;
var regex;

if (regex = url.match(/m(.gamer.com.tw\/)forum\/(\S*)/))
{
location.href = "http://forum" + regex[1] + regex[2];
}
else if (regex = url.match(/m(.gamer.com.tw\/)home\/(\S*)/))
{
location.href = "http://home" + regex[1] + regex[2];
}