Walla Articles Fix Overlapping

By Rotem Liss Last update Nov 30, 2005 — Installed 7,490 times.
// ==UserScript==
// @name           Walla Articles Fix Overlapping
// @namespace      urn:rotemliss:greasemonkey:scripts:wallaarticlesfixoverlapping
// @description    Fix the overlapping of the text and images in Walla! articles (Bug #249828)
// @include        http://*walla.co.il/*
// ==/UserScript==

(function()
{
	//CSS by Uri Bernstein
	//Driver code and fixes by Rotem Liss
	var i;
	var currentElement;
	for (i = 1; (i <= document.getElementsByTagName("*").length); i++)
	{
		currentElement = document.getElementsByTagName("*")[i - 1];
		if ((currentElement.nodeName.toLowerCase() == "div") &&
		 ((currentElement.className.indexOf("wp-0-b") > -1) ||
		 (currentElement.className.indexOf("wp-1-b") > -1)))
		{
			currentElement.style.width = "auto";
		}
	}
})();