Fluid's Google Reader Fix

By filiptepper Last update Mar 1, 2008 — Installed 690 times. Daily Installs: 0, 0, 0, 0, 2, 0, 0, 0, 5, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 2, 0, 1, 4, 2, 1, 2, 0
// ==UserScript==
// @name           Fluid's Google Reader Fix
// @namespace      http://filiptepper.com/
// @include        http://www.google.com/reader/view/*
// ==/UserScript==

if (window.fluid)
{
	Array.prototype.hasValue = function(value)
	{
		for (var i = 0; i < this.length; i++)
		{
			if (value == this[i])
			{
				return true;
			}
		}

		return false;
	}

	setTimeout(GRF_FixCount, 500);

	function GRF_FixCount()
	{
		var GRF_selector = document.getElementById('reading-list-selector');
		if (GRF_selector.className.split(" ").hasValue('unread') == false)
		{
			window.fluid.setDockBadge("");
		}
		setTimeout(GRF_FixCount, 500);
	}
}