// My kottke
// by Justin Koh
// 
// See my original post about this script: 
// http://carboxymoron.com/2009/01/21/old-kottke-new-kottke-my-kottke/
//
// ==UserScript==
// @name           My kottke
// @namespace      http://carboxymoron.com/stuff/kottke/
// @description    If you're going to hurt your eyes, at least do it with a familiar yellow-green.
// @include        http://kottke.org/
// @include        http://kottke.org/*
// @include        http://www.kottke.org/*
// @include        http://*.kottke.org/*
// @author         Justin Koh
// ==/UserScript==

var rules = new Array();
var style;

function enableStyle(rules) {
   style = document.createElement('style');
   style.type = 'text/css';
   document.getElementsByTagName('head')[0].appendChild(style);
   for (var i = 0; i < rules.length; i++) {
      style.sheet.insertRule(rules[i], 0);
   }
}

rules[rules.length] = "div#t,div#b,div#l,div#r,div#tl,div#tr,div#bl,div#br { display: none !important; }";
//rules[rules.length] = "div#t { position: absolute !important; background: #E0FF0C !important; }";
rules[rules.length] = "#intro_c #intro a img { display:none !important; }";
rules[rules.length] = "#intro_c #intro p { padding: 12px 0px 9px 108px !important; background-image: url(http://carboxymoron.com/stuff/kottke/title.gif) !important; background-repeat: no-repeat !important; background-color: #E0FF0C !important; background-position: 10px center; border-left: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC; border-right: 1px solid #666666; border-bottom: 1px solid #666666;}";
rules[rules.length] = "#intro_c #intro p A:link, #intro p A:active, #intro p A:visited, #intro p A:hover { color: #000000; }";
rules[rules.length] = "#intro_c #intro p { color: #333333; }";

enableStyle(rules);