Ort forums

By Yehuda B. Last update Oct 11, 2008 — Installed 91 times. Daily Installs: 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0
// Ort forums user script
// version 0.1
// 2008-10-11
// Copyright (c) 2008, Yehuda B. 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// http://www.gnu.org/licenses/gpl.html
//
// ==UserScript==
// @name           Ort forums
// @namespace      http://yehudab.com
// @description    Fix the new Ort forum pages. Version 0.1
// @include        http://demo.ort.org.il/ortforums/*
// ==/UserScript==

function fixKilroy()
{
	var eh = document.getElementById("EyeHolder");
	if (eh != null)
	{
		eh.style.left = "-45px";
		eh.style.top = "-36px";
	}
}

function fixURL()
{
	if (location.href.match(/\/scripts\//) && !location.href.match(/\/scriptsns\//))
	{
		location.href = location.href.replace(/\/scripts\//, "/scriptsns/");
		return false;
	}
	return true;
}
if (fixURL())
	fixKilroy();