SH AriasStyle

By Arias Last update Sep 30, 2009 — Installed 35 times.
// ==UserScript==
// @name           SH
// @namespace      SH-fix
// @description    Fixing SH
// @include        https://*sh.se/*
// ==/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(
'#virtualbody {' +
' max-width: 1515px !important; } ' +
' .tmt-column-left-float {' 
//'	width:300px !important; ' +	// org. 200px
//'	} ' 
//' .tmt-column-left-float-inner { ' +
//'	width:350px !important; ' +
//'	} ' +
//' .tmt-column-right { ' +
//'	width:200px !important; ' +
//'	float:right !important; ' +
//'	} ' + 
//' .tmt-column { ' +
//'	width:1200px !important; ' +
//'	} ' 
);

addGlobalStyle(
'.vyrubrikrad {' +
' width: 1300px !important; } ' +
'.showhideresult {' +
' width: 1305px !important; } ' +
'.showhiderow {' +
' width: 1290px !important; } ' +
'.showhideentry6 {' +
' width: 500px !important; } ' +
'.showhiderubrikentry6 {' +
' width: 500px !important; } ' +
'.showhiderubrikentry1 { ' +
' width: 75px !Important; } ' +
'.showhideentry1 {' +
' width: 75px !important; } ' 
);

addGlobalStyle(
'#menyn { ' +
' width: 200px !important; } ' );


/***	SKAPA �RENDE ***/

addGlobalStyle(
' .beskstorlek { ' +
'	width: 600px !important; ' +	// org. 500px
'	height: 150px !important; ' +	// org. 140px
'	} ' 
/** temp, verkar inte vilja följa nedåt
' #inreram { ' +
'	height:915px !important; ' +
'	} ' 
**/
/**** tills vidare, sträcket längst ner verkar inte vilja följa med om det blir längre ner
' #innehall { ' +
'	height:898px !important; ' +
'	} ' 
*/
/*
' .kolumn1 { ' +
'	width:170px !important; ' +	//org. 160px
'	} ' +

' .intefet { ' +
'	width:150px !important; ' +
'	{ ' +
*/
);





main = document.getElementById('body-inner');


if(main){

	var logo = document.createElement('DIV');
		main.parentNode.insertBefore(logo, main);
			logo.innerHTML = 
			' <li class="test"> ' +
			'	<div id="new_link"> ' +
			'		<a href="https://ssd04.web.sh.se/shapp/helpdesk.nsf/AktivaArenden?OpenForm" title="Aktiva Ärenden"> ' +
			'			<strong class="heading">Aktiva Ärenden ' +
			'			</strong> ' +
			'		</a> ' +
			'	</div> ' +
			' </li> ';
}


addGlobalStyle(
' .test{ ' +
'	margin-left:25px !important; ' +
'	margin-top:15px !important; ' +
'	height:0px !important; ' +
'	} ' 
);


//print page
addGlobalStyle(
' .printtabellutseende { ' +
'	width:839px !important; ' +
'	} ' 
);


//textareas @ åtgärd
addGlobalStyle(
' #atgard { ' +
'	width:500px !important; ' +	//org. 450px
'	} ' +
' #internt { ' +
'	width:500px !important; ' +	//org. 450px
'	height:150px !important; ' +//org. 100px
' } ' 
);