// Better Sutton Council
// Version 1.0
// 28 September 2008
// By Adrian Short
// Released into the public domain -- enjoy!
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "Better Sutton Council", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          Better Sutton Council
// @description  Usability and style improvements to the Sutton Council website
// @include       http://www.sutton.gov.uk/*
// @include       http://jobs.sutton.gov.uk/*
// ==/UserScript==

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('a { color: blue ! important; }');
addGlobalStyle('a:visited { color: purple ! important; }');
addGlobalStyle('p {font-size: 130%}');

// Remove the clock/calendar
var clock = document.getElementById('timeClock');
if (clock) {
    clock.parentNode.removeChild(clock);
}

