Friendfeed Beta Redirector Greasemonkey Script

Very simple greasemonkey script to redirect all Friendfeed requests to the new beta site.

Updated to exclude paths that do not work under the beta.friendfeed.com domain.

Download the script

// ==UserScript==
// @name           Friendfeed beta redirector
// @namespace      http://kylehasegwa.com/ffbetaredir
// @description    Redirects friedfeed to beta.friendfeed
// @include        http://friendfeed.com/*
// @include        http://www.friendfeed.com/*
// ==/UserScript==

// Split the path into an array
var pathArray = window.location.pathname.split('/');

// These pages should be excluded from beta
var legacyPaths = ['e','account','share','iphone','settings','public','embed','about','api'];

// Redirect all requests to pages that are not in the legacyPaths
if (legacyPaths.indexOf(pathArray[1]) < 0) {
    window.location = window.location.protocol + '//' + 'beta.friendfeed.com' + window.location.pathname + window.location.search;
}

All code on this site is free for use at your own risk and provided as-is under the WTFPL license unless otherwise stated. Attribution is appreciated but not required.
Blog content, with the exception of externally quoted material, is licensed under the Creative Commons Attribution 3.0 license