Israel ministry of interior

By Yehuda B. Last update May 7, 2009 — Installed 262 times. Daily Installs: 1, 0, 0, 1, 0, 0, 1, 3, 1, 2, 2, 2, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 3, 0, 0, 2, 0, 0, 0, 0, 1
// Israel ministry of interior user script
// version 0.1
// 2009-05-07
//
// Copyright (c) 2009 Yehuda B.
// 
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
// 
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
// ==UserScript==
// @name           Israel ministry of interior
// @namespace      http://yehudab.com
// @description    Israel ministry of interior fixer. Version 0.1
// @include        http://www.pnim.gov.il/*
// @include        http://www.moin.gov.il/*
// ==/UserScript==

unsafeWindow.changeFrameSize = function(){
	height=document.body.clientHeight
	
	try{
		el=document.getElementById("Main");
		var ot=el.offsetTop;
		while((el=el.offsetParent) != null) {
			ot += el.offsetTop;
		}
	} catch (e){
		ot = 40;
	}
	ot=140;
	document.getElementById("Main").style.height =height-ot;
}