Ad Skipper fark.com v2

By Chris Brewer Last update Oct 6, 2005 — Installed 1,513 times.
// ==UserScript==
// @name            Ad Skipper fark.com v2
// @namespace       http://csclub.uwaterloo.ca/~tshaynes/javascript/greasemonkey
// @description     2005-10-07: Updated by Chris Brewer for new fark layout. Disables the ads column on fark.com.  Based on the Ad Skipper for Eurogamer.net, written by Carlo Zottman.
// @include         http://*.fark.com*
// ==/UserScript==

(function() {

    var AdSkipper =
    {
        checkPage: function()
        {
            currentURL = window._content.location.href;
            currentDoc = window._content.document;

            if (currentURL.match(/^http:\/\/((www|forums)\.)?fark\.com\//))
            {
				this.injectCSS(".newtoolbar { display:none; }\n");
            }
        },


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



    }

    AdSkipper.checkPage();

})();