View Single Post
11-11-05, 01:46 AM   #12
tardmrr
Lua Ninja
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 133
After an idea by Guillotine, I wrote a short greasemonkey script to replace slouken's avatar with any arbitrary picture on the internet. I used a scaled down version of the pirate photo Cair posted.

Here is a link to the scaled pirate avatar: http://img373.imageshack.us/img373/3332/slouken0gx.gif

And a screenshot of it in action (ignore me crashing Wow... I needed to get 2 screenshots into one because I'm lazy):

http://img492.imageshack.us/img492/3782/ss6gg.jpg

Edit: I forgot to post my code for the script. This is the snippet of my code that does the avatar stuff; I'm playing around with some other things in the same script so I left them out.

Code:
var tds = document.getElementsByTagName('td');

for(i = 0; i < tds.length; i++)
{
	if(tds[i].getAttribute("background") == "/images-new/portraits/bliz.gif")
	{
		if(tds[i].parentNode.parentNode.parentNode.parentNode.getElementsByTagName('a')[0].innerHTML == "slouken")
		{
          	tds[i].setAttribute("background", "http://img373.imageshack.us/img373/3332/slouken0gx.gif");
		}
	}
}
Here is a direct link to the script if some greasemonkey users want to install it. http://userscripts.org/scripts/source/2132.user.js

[Note: this includes my pre "fix"]

Last edited by tardmrr : 11-11-05 at 01:21 PM.
  Reply With Quote