jeggy / Torn Egg Finder

// ==UserScript==
// @name        Torn Egg Finder
// @author      Jógvan Olsen
// @namespace   http://www.torn.com/
// @description Shows an alert box when a egg is found on your current page
// @include     http://www.torn.com/*
// @version     1
// ==/UserScript==

var links = document.getElementsByTagName("a");
for (var i = 0, max = links.length; i < max; i++) {
	if (links[i].href.indexOf("competition.php?") != -1) {
		alert("Egg is on this page!");
	}
}