// TWXT
// version 0.1 BETA!
// 2008-09-19
// Copyright (c) 2008, Stuart Robertson
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.  To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "TWXT", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          TWXT
// @namespace     http://www.designmeme.com/twitter-css-customization/
// @description   adds a classname matching the username of the poster to the <TR> of each post on Twitter.com
// @include       http://twitter.com/*
// ==/UserScript==

var classCheck = 'url';
var myLinks = document.getElementsByTagName("a");
for (var i = 0; i < myLinks.length; i++) { 
		if (myLinks[i].className=="url"){
		myUrl=myLinks[i].getAttribute('href');
		myUrl=myUrl.replace(/http:\/\/twitter.com\//," ");
		myLinks[i].parentNode.parentNode.className+=myUrl;
		}
}
