//
// Written by Glenn Wiking
// Script Version: 1.0.0
// Date of issue: 01/09/15
// Date of resolution: 01/09/15
//
// ==UserScript==
// @name ShadeRoot Hotmail
// @namespace HM
// @description Eye-friendly magic in your browser for Hotmail
// @version 1.0.0
// @icon https://i.imgur.com/AooOglK.png
// @include http://*.hotmail.*
// @include https://*.hotmail.*
// @include http://*login.live.*
// @include https://*login.live.*
// @include http://*mail.live.com*
// @include https://*mail.live.com*
// @include http://*shaderoot.host56.com/exp/*
// @include https://*shaderoot.host56.com/exp/*
// ==/UserScript==
function ShadeRootHotmail(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);
}
ShadeRootHotmail(
'html, body, .signInHeader iframe, .t_body .t_sbgc {background: rgba(19, 27, 38, 1) !important;}'
+
'div.footer {background-color: rgba(6, 17, 30, 1) !important;}'
+
'div.row.label, div.section > div.label, label, .SignUp span, .signUpFloat span {color: #778 !important;}'
+
'.outlook, .Outlook, div#offer div#text {background-color: rgba(6, 46, 92, 1) !important;}'
+
':root input {border: 1px solid rgba(11, 72, 150, 1) !important; background: rgba(18, 55, 102, 1) !important;}'
+
'.outlook a, .outlook a:hover, .outlook a:visited {border: 1px none rgba(20, 63, 138, 1); background-color: #123766 !important;}'
+
'*::-moz-selection {background-color: #004FC6 !important; color: #B9CBE6 !important;}'
+
'.c_search_mc {border: 1px solid #0B4896 !important; background-color: #123766 !important;}'
+
'.ContentRightInner, .t_mbgc, .t_qtc, .t_urtc {background-color: rgba(4, 19, 35, 1) !important;}'
+
'.mlRule, .mgRule {border-bottom: 1px solid rgba(9, 62, 131, 1) !important;}'
+
'.c-ContainerList .selectable.selected, .c-ContainerList .selectable:hover, .t_mbgc .t_sel, .t_mbgc .t_sel:hover, .t_sel {background-color: rgba(13, 69, 123, 1) !important; color: rgba(109, 186, 243, 1) !important;}'
+
'.leftnavitem:focus {background-color: rgba(22, 105, 176, 1) !important;}'
+
'.editableLabel, .readonly, .c_search_mc input.c_search_box, .c_search_mc input.c_search_box[disabled] {color: rgba(109, 186, 243, 1) !important;}'
+
'.SearchBox input {border: 0px solid black !important;}'
+
'.BorderTop {border-top: 1px solid #093E83 !important;}'
+
'.c-PageFooter .uxp_ftr_control td {background-color: #0D457B !important;}'
+
'.c-PageFooter .uxp_ftr_control {background-color: #0D457B !important; border-top: 1px solid rgba(17, 79, 173, 1) !important;}'
+
'.c-PageFooter .uxp_ftr_control ul li span, .t_lnksi a {color: rgba(112, 166, 200, 1) !important;}'
+
'#CurtainTableCell {background-color: #0F1C35 !important;}'
+
'#CurtainSpinner {opacity: .7 !important;}'
+
'#CurtainText {color: #507BBA !important;}'
+
'.t_sbgc .t_s_hov:hover, .t_s_hov:hover, .t_s_hov:hover .t_s_hovh, .t_s_sel, .t_s_h {background-color: rgba(20, 67, 138, 0.65) !important;}'
+
'.t_qtc, .t_qtc:hover, .t_qtc:visited, .mlRd .t_estc, .count {color: #1C63DE !important;}'
+
'.FmSender {background-color: rgba(0,0,0,0) !important;}'
+
'.t_sbgc div.t_sr_bordc, input.t_sr_bordc, #search_filter.t_sr_bordc {border-color: #0B4896 !important;}'
+
'.t_sbgc div.t_srbgc, .t_sbgc div.t_srbgc input, .t_sbgc input.t_srbgc {background-color: #123766 !important;}'
+
'.cp_inputArea:hover {border-color: #1D5DBC !important;}'
+
'.RteToolbar .ButtonList > UL > LI > A, .ButtonList {background: #004B8B !important;}'
+
'.RteToolbar .ButtonList > UL > LI > A:hover {background: #1669BA !important;}'
+
'.NotificationBase.NotificationBar .InnerContainer .Content .UserArea, #c_memenu.c_m .c_ld {color: #92C5F0 !important;}'
+
'.c_mli a, .c_m li a, .c_m li span.link, .c_m li span.c_ld {border: 1px solid #0A427A !important;}'
+
'ul.c_m a, ul.c_m a:visited {color: #5BA2F2 !important;}'
+
'ul.c_m a:hover, ul.c_m a:focus, .c_c ul.c_m a:hover {background-color: #1674CF !important; color: #AECEEA !important;}'
+
'ul.c_m, .c_hb .c_c.t_hdbg .c_cc .c_mf li {background: #0A427A !important;}'
+
'.c_hb .c_c.t_hdbg .c_cc .c_mf li a:hover {background-color: #3161D4 !important;}'
+
'.c-ReadMessage .rmRule, .HMLV .Border {border-bottom: 1px solid #1F3E60 !important;}'
+
'.HMLV .Header {border-top: 1px solid #1F3E60 !important;}'
+
'input[type="email"], input[type="password"], .SafetyBarPadding {color: #A8A8B8 !important;}'
+
'.c-ReadMessagePartBody .readMsgBody {opacity: .82 !important;}'
+
'#uxp_ftr_left, .t_lnksi {background-color: #0D457B !important;}'
+
'#uxp_ftr_control.t_fbgc, .t_fbgc {background-color: #0D457B !important; border-top: 1px solid #0D559C !important;}'
+
'.MainOptionsList li a, .SubsectionPadding, #sdx_mb, .ManageRulesDescriptionColumn .ruleDescription {color: #6DBAF3 !important;}'
+
'.MainOptionsTitle {color: #8FC1E1 !important;}'
+
'.PrimaryTextColor, .TextSizeSmall, .cOptionsBody H3 {color: rgb(45, 134, 221) !important;}'
+
'input[type="button"], input.default[type="button"] {color: #71A3E3 !important;}'
+
'.cpv2 .cp_clist {border: 1px solid #173557 !important; background: rgba(255, 255, 255, 0) !important;}'
+
'.cp_anyInput, .cpv2, .cp_primaryInput, .cp_awe textarea, .cp_input textarea {background-color: rgb(18, 55, 102) !important;}'
+
'.carousel.carouselVisible {border-bottom: 1px solid #124374 !important;}'
+
'.carouselItemWrapper, .carouselSmooth {background-color: rgb(19, 27, 38) ! important;}'
+
'.carouselItemBorder:hover {border: 3px solid #004B8B !important;}'
+
'#infoBoxTitle, .c_rchev, .TextSizeSmall, .iaPrimaryTextColor, .c-ManageRules .iaPrimaryTextColor {color: #3D8CC6 !important;}'
+
'.ManageRulesTable {border-top: 1px solid #11427A !important;}'
+
'.NewRuleButton {background-color: #0B3E78 !important; color: #4393BF !important;}'
+
'.ManageRulesTableBody TR:hover {background-color: #0D3466 !important;}'
+
'.OuterContainer {background-color: rgba(0, 0, 0, 0) !important;}'
+
'.InnerContainer .UserTitle {color: #63BAD7 !important;}'
+
'.editRule_Panel .conditionListTitle, .editRule_Panel .actionListTitle, .c_mcp.boxStyle .c_ml span, .editRule_Panel .addActionDiv .addConditionText, .editRule_Panel .addConditionDiv .addConditionText, .editRule_Panel .addActionDiv .addActionText, .editRule_Panel .addConditionDiv .addActionText {color: #67ABEF !important;}'
+
'.c_mcp.boxStyle .c_ml {border: 1px solid #529DD4 !important;}'
+
':root button.default {background-color: #06599F !important; color: #7DB7E1 !important;}'
+
':root button.default:hover {background-color: #3D94D4 !important;}'
+
'.RPBottom .v-ReadMessageContainer {border-top: 1px solid #093E83 !important;}'
// // // // // FLYOUTS
+
'.NotificationBase.Flyout .OuterContainer, .NotificationBase.DropDown .OuterContainer {background-color: rgba(14, 47, 84, 1) !important;}'
+
'.c_headerBar .UserContent a {border: 3px solid rgba(13, 74, 119, 1) !important;}'
+
'.c_headerBar .UserContent a, .c_headerBar .UserContent li, ul.c_m, #c_h_theme_m {background-color: rgba(10, 66, 122, 1) !important}'
+
'.NotificationBase.Flyout .Beak4:after, .NotificationBase.Flyout .Beak5:after {border-bottom-color: rgba(10, 66, 122, 1) !important;}'
+
'.InnerContainer {background: #004B8B !important;}'
+
'.ContentRightInner, .t_mbgc, .t_qtc, .t_urtc {color: #1C5D8D !important;}'
+
'.Subject {border-bottom: 1px solid #053974 !important;}'
+
'.fSubject, .t_subj, .TextLightI, .WatermarkedInput, .Unread, .cp_Contact a, .t_urtc, .t_urtc .mlUnrd .Fm a, .t_urtc .Unread, .t_srbgc input.t_urtc, .t_atc:hover, .t_atc:visited, .t_atc:focus, .t_srbgc a.t_urtc, #search_filter.t_urtc, #search_filter.t_urtc:focus, .t_atc {color: #97C3F5 !important;}'
);