// ==UserScript==
// @name      del.icio.us filter by tags
// @namespace http://opera.higeorange.com
// @include   http://del.icio.us/*
// ==/UserScript==

(function() {
    var ftags = ['iphone', 'fonts'] // add tags you don't want to display
    var str_ftags = ' ' + ftags.join(' ') + ' ';

    var posts = document.evaluate('//li[@class="post"]', document,
        null, 7, null);

    for(var i = 0, l = posts.snapshotLength; i < l; i++) {
        var etags = document.evaluate('./div[@class="meta"]/a[@class="tag"]',
            posts.snapshotItem(i), null, 7, null);
        for(var j = 0, m = etags.snapshotLength; j < m; j++) {
            if(str_ftags.indexOf(' ' + etags.snapshotItem(j).innerHTML.toLowerCase() + ' ') > -1) {
                posts.snapshotItem(i).style.display = 'none'
                break;
            }
        }
    }
})();
