// Version 1
// Thursday, 20 September 2007
// OKGG Poopifier
// LightningCrash

// ==UserScript==
// @name           OKGG Poopifier
// @description    Replace avatars with poop.
// @include        http://www.okgg.org/forum/viewtopic.php?*
// ==/UserScript==

// Create a list of anchors
var handle = document.getElementsByTagName('img');

// Parse each anchor
for (i=0; i<=handle.length; i++)
{
	var oldString = handle.item(i).href;                        // Old URI
	var searchFor = /http:\/\/www.okgg.org\/forum\/images\/avatars\/\/94523058546099b7833cb5\.gif/gi;           // Regular expression to match
	var replaceWith = "http://img216.imageshack.us/img216/7452/flower1pb4.gif";            // Text to replace matches with
	var newString = oldString.replace(searchFor, replaceWith);  // New URI

	// If the new URI isn't the same as the old URI, remove the ') from the end.

	// Commit the changes
	handle.item(i).href = newString;
}



