Howrse BannerAd Border Removal

Removes the border for the Banner Ad on Howrse.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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;
};