
// Blogbot TV2 Filter
// version 0.1 BETA!
// 2006-10-30
// Copyright (c) 2006, Bjarke Soerensen
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.  To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "Blogbot TV2 Filter", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          Blogbot TV2 Filter
// @namespace     http://orangenose.com/development/
// @description   A script that filters off all TV2 Blog entries from the main list
// @include       http://blogbot.dk/*
// @include       http://*.blogbot.dk/*
// ==/UserScript==

var allLinks, thisLink;
allLinks = document.evaluate(
    "//a[contains(@href,'blog.tv2.dk')]/ancestor::div",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i = 0; i < allLinks.snapshotLength; i++) {
    thisLink = allLinks.snapshotItem(i);

    thisLink.parentNode.removeChild(thisLink); 
}
