// ==UserScript==
// @name            Bloglines: Hide Google Image Ads
// @namespace       http://docs.g-blog.net/code/greasemonkey
// @description     2005-05-28: Hides all Google Image Ads in Bloglines.
// @include         http://bloglines.com/*
// @include         http://www.bloglines.com/*

/*
    (c) Carlo Zottmann, carlo@g-blog.net
    in coop with Matthew Gertner, matthew@allpeers.com
    http://G-Spotting.net/

    Copy, use, modify, spread as you see fit.
*/

(function() {

    var BloglinesHideGoogleImageAds =
    {
        go: function()
        {
            this.injectCSS("IMG[src^='http:\/\/imageads.'], A[href^='http:\/\/imageads.'], A[href='http:\/\/www.google.com\/ads_by_google.html'] { display: none; }");
        },


        injectCSS: function(css)
        {
            head = document.getElementsByTagName("head")[0];
            style = document.createElement("style");
            style.setAttribute("type", 'text/css');
            style.innerHTML = css;
            head.appendChild(style);
        }
    }

    BloglinesHideGoogleImageAds.go();

})();
