Digg Comment Layout Fix

By starsky51 Last update May 28, 2008 — Installed 109 times.
// ==UserScript==
// @name          Digg comment Layout Fix
// @description	  Fixes some of the layout issues caused by the Digg update which was introduced on 15th May 2008. It makes the comment blocks more compact and ensures that nested comments are laid out correctly.
// @namespace     http://starsky51.googlepages.com/digglayoutfix
// @include       http://digg.com/*

//by Dave Vickery (starsky51)
// ==/UserScript==

//addGlobalStyle function taken from diveintogreasemonkey.org

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('.comment li { min-width: 400px ! important; padding-left: 10px ! important;}');
addGlobalStyle('.c-head { position: relative ! important; top: 0px ! important; left: 3px ! important;}');