// ==UserScript==
// @name				slashdot FCC facelift
// @namespace		http://friedcellcollective.net/userscripts
// @description	Change the look of slashdot.org to my CSS redesign contest entry
// @include			http://slashdot.org/*
// ==/UserScript==

(function() {
		var heads = document.getElementsByTagName('head');
		if (heads.length==0) return;
		var links = heads[0].getElementsByTagName('link');
		var link;
		for (var i=links.length-1;i>=0;i--) {
			if (links[i].rel!='stylesheet') continue;
			link = links[i];
			link.parentNode.removeChild(link);
		}
		link = document.createElement('link');
		link.rel = 'stylesheet';
		link.type = 'text/css';
		link.media = 'screen,projection';
		link.href = 'http://friedcellcollective.net/slashdot/new_style.css';
		heads[0].appendChild(link);
		var script = document.createElement('script');
		script.type = 'text/javascript';
		script.src = 'http://friedcellcollective.net/slashdot/new_script.js';
		heads[0].appendChild(script);		
})();