It would appear that certain softwares have coalesced into an insidious force to…piss me off. Using the rss feed I am using to view Digg stories takes me to the page where the comments are shown, and the comments as I have blogged are filled with such schlock that I am inclined to become rather insensed when reading them.
Never fear, programming will save the day.
I am a long time (as long as can be expected with such new things) Greasemonkey fan. and what better way to get rid of the comments on Digg than to override the CSS there. I give you, my script, The Anti Depressant:
// ==UserScript==
// @namespace http://nathanpowell.org
// @name fix digg
// @description messing around
// @include http://digg.com/*
// ==/UserScript==
document.title = "Digg...greased!";
var newCss = '#comments {' +
'display: none;' +
'}';
function overRideCSS( newCss ) {
var head = document.getElementsByTagName("head")[0];
var styleTag = document.createElement("style");
styleTag.setAttribute("type", 'text/css');
styleTag.innerHTML = newCss;
head.appendChild(styleTag);
}
overRideCSS( newCss );
:-)