Howrse BannerAd Border Removal

Removes the border for the Banner Ad on Howrse.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Howrse BannerAd Border Removal
// @namespace   myHowrse
// @description Removes the border for the Banner Ad on Howrse.
// @include     http://www.howrse.com/*
// @exclude     http://www.howrse.com/member/forum/
// @exclude     http://www.howrse.com/member/forum/topics/*
// @author      daexion
// @version     1
// ==/UserScript==

var l = document.getElementsByTagName('div');

var i=0;

while(i<l.length)
{
	if(l[i].hasAttribute("style"))
	{
		GM_log(l[i].getAttribute("style"));
		if(l[i].getAttribute("style") == "float: left; min-width: 728px; padding-left: 0px; min-height: 90px; border: 2px solid rgb(200, 223, 229);")
		{
			l[i].setAttribute("style","float: left; min-width: 728px; padding-left: 0px; min-height: 90px; border: 0px solid rgb(200, 223, 229);");
			i=l.length;
		}
		if(l[i].getAttribute("style") == "float: left; min-width: 728px; padding-left: 0px; min-height: 90px; border: 2px solid #C8DFE5;")
		{
			l[i].setAttribute("style","float: left; min-width: 728px; padding-left: 0px; min-height: 90px; border: 0px solid #C8DFE5;");
			i=l.length;
		}
	}
	++i;
};