// ==UserScript==
// @name           Facebook CSS fixer
// @namespace      Daniel Leinerud
// @description    If you don´t like the new Facebook look, this will fix some things
// @date           2009-03-15
// @version        1.3
// @include       http://facebook.*/*
// @include       http://www.facebook.*/*
// ==/UserScript==

GM_addStyle(
'.home .UIIntentionalStream .UIIntentionalStory_Message  { display: block; padding-bottom: 0px; font-size:11px;}' +
'.profile .UIStream .UIIntentionalStory_Message  { display: block; padding-bottom: 0px; font-size:11px;}' +
'div.UIIntentionalStory_Body { min-height:35px; padding:0 0 0 50px;}' +
'.commentable_item .comment_add_row { padding-bottom:1px; }' +
'.UIRoundedImage_LARGE .UIRoundedImage_Image { height:35px; width:35px; }' +
'.UIRoundedImage_Corners { display:none; }' +
'.UIRoundedImage_LARGE { height:35px; width:35px; }' +
'.UIHotStory .UIMediaItem_Wrapper img{ width:40px !important; height:40px !important; }' +
'.UIMediaItem_Photo .UIMediaItem_PhotoFrame { width:40px !important; }' +
'.UIMediaItem_ImageLink .UIMediaItem_Photo a:hover .UIMediaItem_Wrapper, .UIMediaItem_Photo a:hover .UIMediaItem_PhotoBorder {   width:40px !important;  }' +
'.UIMediaItem_ImageLink { display:none; }' +
'.UIHotStory .UIMediaItem_ImageBackground {  width:40px !important; height:30px !important; margin-top:3px;}' +
'.UIHotStory_Media { width:55px !important; }' +
'.UIRoundedBox_Box .UIRoundedBox_TR, .UIRoundedBox_GrayBlueTopBackground .UIRoundedBox_Box .UIRoundedBox_TR { padding:0 0 0 0; }' +
'.UIComposer_Prompt { font-size:11px !important; }' +
'.UIFilterList_Item a { font-size:9px; padding:8px 9px 3px 25px; height:14px; }' +
'.UIHomeBox { font-size:10px; }' +
'.UIHotStory_Copy { font-size:10px; }' +
'.UIHotStory_Ad { display:none !important; }' +
'.UIMediaItem img { height:60px; }' +
'#home_sidebar { width:230px; }' +
'#sidebar_ads .adcolumn { display:none; }' +
'.UIComposer_STATE_INPUT_FOCUSED .UIComposer_TextArea { font-size:11px; }' +
'.UIHotStory_Small .UIHotStory_Media .UIMediaItem { height:30px; }'
);



var lookForTests = new Array(); 

function doSomethingWithClasses(class) {

	var lookForTests=document.getElementsByTagName("*");
	

	for (i=0; i<lookForTests.length; i++) {

		if (lookForTests[i].className==class) {
			
			var string = lookForTests[i].innerHTML.substring(30000000,0).toLowerCase().toString();
			
			if (string.indexOf('took the') > -1) {

				lookForTests[i].parentNode.parentNode.style.display='none';
			
			}
		}
	}
} 

doSomethingWithClasses('UIIntentionalStory_Message');
