Howrse BannerAd Border Removal

Removes the border for the Banner Ad on Howrse.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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;
};