// Scarecrow
// version 0.2 BETA!
// 2008-11-03
// 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 "Scarecrow", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          Scarecrow
// @namespace     http://www.designmeme.com/scarecrow/
// @description   removes any posts on Twitter.com containing "#magpie"
// @include       http://twitter.com/*
// ==/UserScript==

var theTweets = document.getElementsByTagName("tr");
for (var i = 0; i < theTweets.length; i++) { 
		if (theTweets[i].className.match("hentry")) {
		myTweet= theTweets[i].innerHTML;
		if (myTweet.match("#magpie")) { 
			theTweets[i].innerHTML="";
		}
		}
}