// ==UserScript==
// @name            Digg Modification Project
// @version         3.0.1.1
// @author	        Hans van de Bruggen <pintong@gmail.com>
// @namespace       http://greasemonkey.hansv.com/
// @description	    A Greasemonkey implimentation of the Digg Modification Project.
// @include         http://*.digg.com/*
// @include         http://digg.com/*
//
//  Digg Modification Project
//
//  The Digg Modification Project is an effort to improve the Digg user interface. At 
//  the current time, it consists of CSS modifications to many parts of the digg 
//  interface. Of course, I would recommend downloading the files for the latest release 
//  of the Digg Modification Project.
//
//  The following changes have been made since the previous version (3.0):
//
//    * The menu was moved to the right side.
//    * Most, but not all of, the ads have been removed.
//    * Some space is added between the digg counter and the story information on each of the summarized story sections.
//    * Some space was removed between the footer and the page selectors.
//    * Comments on stories now stretch to 720 pixels.
//    * The textarea for comment addition stretches to 720 pixels.
//    * When logged out, the login form appears automatically instead of upon clicking, for better syncing with the Wand.
//
//There is also one bug present with version 3.0.1:
//
//    * On comments pages, hovering over the “Bury Story” area moves the link over the topic, effectively making the topic link disappear. Clicking on the “Bury Story” link restores this until it’s moused away from and then hovered over again.

//
//  This Greasemonkey script based off CSS project found at:
//  http://imitation.f2o.org/diggmod/
//  
// 
// ==/UserScript==



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

.comment textarea{ width: 718px !important;}
.comment > ol {  width: 720px !important;}
#content, #container, #sidebar, #footer {  background: none !important;}
#contents, #sidebar {  float: left! important;  border: none! important;}
#sidebar {  padding: 20px 0 1em 35px !important;  background-position: 0;}
#login-form {  display: block !important;}
#footer {  margin-top: -61px !important;}
.news-body {  margin-left: 8px !important;}
);