Howrse Pack

Collection of small scripts into one script

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name        Howrse Pack
// @namespace   myHowrse
// @author      daexion
// @description Collection of small scripts into one script
// @include     http://*.howrse.com/*
// @version     1
// ==/UserScript==
setTimeout(bannerBorder,500);

//	Modifies the properties of the element that lets you give tickets to players on your friend list
if(document.URL.indexOf("/operation/tombola/") > 0)
{
	moduleList = document.getElementsByClassName("module-pattern spacer-large-bottom ra-m pa-m fz-m ba-green-dark bo-n co-green");

	for(i = 0;i < moduleList.length;++i)
	{
		moduleList[i].setAttribute("class","module-pattern spacer-large-bottom ra-m pa-m fz-m ba-green-light bo-n co-n");
	}
}
//	Modifies the horse links on your EC horses page to link to the private page instead of the public page.
if(document.URL.indexOf("howrse.com/centre/chevaux/") > 0)
{
	horsesList = document.getElementsByClassName("horsename");
	for(i = 0;i < horsesList.length;++i)
	{
		oldSrc = horsesList[i].getAttribute("href");
		horsesList[i].setAttribute("href","/elevage/chevaux/cheval?id" + oldSrc.substring(oldSrc.indexOf("="),oldSrc.length));
	}
}

//	Modifies the banner ad div
function bannerBorder()
{
	bannerAd = document.getElementById("banner");
	if(bannerAd.getAttribute("style") == "margin-left: 8em;")
	{
		subBanner = bannerAd.getElementsByTagName("div");
		subBanner[1].setAttribute("style","min-height:94px;");
	}
	else bannerAd.setAttribute("style","");
}