<site>
<title>techcrunch</title>
<www.techcrunch.com</url>
<icon>86E3C304-FD98-11DC-BF6C-0011D8951B84.ico</icon>
<startup>0</startup>
<page_handler>
<url>www.techcrunch.com</url>
<match>strstr</match>
<code>
javascript:
// Refresh page every ten minutes
self.setTimeout('window.location.reload()', 10*60*1000);
checkNewPost();
function checkNewPost()
{
/* get the ID of the latest post */
var content = document.getElementById("content");
var postDiv = content.getElementsByTagName("div")[0];
/* check whether we have a new post and display a bubble if we do */
if (postDiv) {
var postId = postDiv.attributes.getNamedItem("id").nodeValue;
var previousId = BB_getValue("last_post_id");
/* Is the ID different from the last post we saw? */
if (postId != previousId) {
var postAnchor = postDiv.firstChild.firstChild;
/* If so, store the new ID and display a popup notification */
BB_balloon('TechCrunch\n', postAnchor.title, postAnchor.href, 30);
BB_setValue("last_post_id", postId);
}
}
}
</code>
</page_handler>
</site>