Woot Titler

By AndrewNeo Last update Jul 30, 2008 — Installed 222 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           Woot Titler
// @namespace      http://projects.neocodenetworks.org/gm/
// @description    Puts the product name in the title
// @include        http://*.woot.com/
// @include        http://*.woot.com/Default.aspx*
// ==/UserScript==

window.addEventListener("load", function(e) {
	product = document.getElementById("TitleHeader").innerHTML;
	price = document.getElementById("PriceSpan").innerHTML;
	var soldout = "";

	if (document.getElementById("ctl00_ContentPlaceHolder_SoldOutPanel") != null)
	{
		soldout = "[SOLD OUT] "
	}

	document.title = "Woot : " + soldout + product + " (" + price + ")";
}, false);