// ==UserScript==
// @name Bing Search Dark Night Mode Theme
// @namespace english
// @description Bing Search Dark Night Mode Theme - currently undergoing build
// @include http*://*bing.*/search?*
// @include http*://*bing*search?*
// @version 1.7
// @run-at document-end
// @grant GM_addStyle
// ==/UserScript==
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = ' body, html, html body {/*\n*/ background: #1d1d1d !important;/*\n*/ background-color: #1d1d1d !important; /*\n*/}body, .b_promoteText, body #b_tween a.ftrH, body #b_tween a.ftrH:hover, .b_expando, body .b_expando h2,body .b_active a, body .b_active a:visited, body .b_active a:hover, #b_results>.b_pag a, #b_results .b_no, #b_content a.cbl:visited, #b_content a.cbl {/*\n*/ color: #afafaf;/*\n*/}body #b_header {/*\n*/ border-bottom: 1px solid #252525;/*\n*/}body #b_header { /*\n*/ background-color: #4a4a4a;/*\n*/ /*\n*/}body .b_scopebar .b_active a,body .b_scopebar a:hover,body .id_button:hover {/*\n*/ color: #fbfbfb;/*\n*/}body .b_scopebar,body .b_scopebar a,body .b_scopebar a:visited,body .id_button, body .id_button:visited {/*\n*/ color: #adadad;/*\n*/}body .b_footer { /*\n*/ filter: invert(1);/*\n*/}body #b_results>.b_pag .sb_pagS_bp {/*\n*/ color: #ececec;/*\n*/}body #b_results>.b_pag a:hover {/*\n*/ background-color: #101010;/*\n*/}body #b_results>.b_pag .sb_pagS_bp:hover {/*\n*/ background-color: #fff0;/*\n*/}body #b_results>.b_pag a.sb_pagP:hover, #b_results>.b_pag a.sb_pagN:hover {/*\n*/ background-color: #101010;/*\n*/}body .b_searchboxForm { /*\n*/ filter: invert(1)hue-rotate(180deg)contrast(0.88);/*\n*/}body .b_searchboxForm:hover, body .b_focus .b_searchboxForm {/*\n*/ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px 1px rgba(255, 255, 255, 0.18); /*\n*/}body #sw_as #sa_ul:not(:empty) {/*\n*/ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px 1px rgba(255, 255, 255, 0.18);/*\n*/}body .b_searchboxForm img{filter:invert(1)hue-rotate(180deg)contrast(1);} body #b_context .b_ans,body #b_context #wpc_ag {/*\n*/ background-color: #353535;/*\n*/}body #b_results>li {/*\n*/ background-color: #353535;/*\n*/}body .b_cnvsug a { /*\n*/ color: #39a5bd; /*\n*/ background-color: #101010;/*\n*/ border: 1px solid #4e4e4e; /*\n*/}body .b_cnvsug a:hover {/*\n*/ color: #07c0f7; /*\n*/ border-color: #232323;/*\n*/ background-color: #2f2f2f; /*\n*/}body .b_mt .b_focusLabel {/*\n*/ color: #ababab; /*\n*/}body #b_context .b_entityTitle, #b_results .b_entityTitle {/*\n*/ color: #d4d4d4;/*\n*/}body #b_context .b_entitySubTitle, #b_results .b_entitySubTitle {/*\n*/ color: #a7a7a7;/*\n*/}body #b_context,body #b_context #wpc_eif {/*\n*/ color: #b5b5b5;/*\n*/}body a, #b_tween a:visited, #b_results .b_no a {/*\n*/ color: #4d94d4;/*\n*/}body #b_context .b_footnote a {/*\n*/ color: #9c9c9c;/*\n*/}body a:visited, body #b_results>li a:visited {/*\n*/ color: #cefffb;/*\n*/}body #b_results>li a ,body #b_results>li a{/*\n*/ color: #a2c4e2;/*\n*/}body #b_results>li a:visited {/*\n*/ color: #cefffb;/*\n*/}body cite,body #b_results cite.sb_crmb a,body #b_results cite a.sb_metalink,body #b_results .b_adurl cite a, #bk_wr_container cite a {/*\n*/ color: #9dd6bc;/*\n*/}body .b_caption, body .snippet {/*\n*/ color: #ccc;/*\n*/}#b_results, #b_results .b_defaultText, #b_results>.b_pag a:hover, #b_tween .b_toggle:hover, #b_tween .b_highlighted {/*\n*/ color: #c7c7c7;/*\n*/}.sw_ddbk:after, .sw_ddw:after, .sw_ddgn:after, .sw_poi:after, .sw_poia:after, .sw_play:after, .sw_playa:after, .sw_playd:after, .sw_playp:after, .sw_st:after, .sw_sth:after, .sw_ste:after, .sw_st2:after, .sw_plus:after, .sw_tpcg:after, .sw_tpcw:after, .sw_tpcbk:after, .sw_arwh:after, .sb_pagN:after, .sb_pagP:after, .sw_up:after, .sw_down:after, .b_expandToggle:after, .sw_calc:after, .sw_fbi:after, .sw_twi:after, .b_fLogo:after, .b_cm:after, .sw_rmore:after, .sw_tpo:after, .sw_tpoa:after, .sw_lpoi:after, .sw_skp:after { /*\n*/ filter: invert(1);/*\n*/} body .b_idOpen a#id_l,body a#id_rh.openfo {/*\n*/ color: #c7c7c7;/*\n*/ background-color: #fff0;/*\n*/}body .b_searchboxForm {/*\n*/ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px 0 rgba(255, 255, 255, 0.16); /*\n*/}body .sw_meIc:after, body .sw_spd:after, body .sw_pref:after, body .idp_ham:after, body .idp_wlid:after,body .idp_tw:after { /*\n*/ filter: invert(1);/*\n*/}body .b_logo img { /*\n*/ filter: invert(1)hue-rotate(180deg);/*\n*/} body .b_caption p strong, body .b_caption .b_factrow strong, body .b_secondaryText strong {/*\n*/ color: #ffffff;/*\n*/}body .adbDef{ filter: invert(1);}/*\n*/#rfPane {/*\n*/ background: #1d1d1d; /*\n*/}body .touchQuery .carousel .carousel-controls, .touchQuery .carousel .items, .touchQuery .carousel .item, .touchQuery .carousel .carousel-controls .nav_left, .touchQuery .carousel .carousel-controls .nav_right {/*\n*/ background: #fff0;/*\n*/}body .carousel {/*\n*/ position: relative;/*\n*/ background: #4a4a4a00;/*\n*/}body .touchQuery .carousel .nav_left>div, .touchQuery .carousel .nav_right>div {/*\n*/ background: #000;/*\n*/ box-shadow: 1px 1px 10px #000; /*\n*/}body .dg_b { /*\n*/ background-color: #1d1d1d;/*\n*/ /*\n*/}body .inline_tile .carousel {/*\n*/ background-color: #f5f5f500;/*\n*/}body .iuscp {/*\n*/ background: #fff0; /*\n*/ border: 1px solid #e6e6e626;/*\n*/}body .inline_tile .carousel h2 { /*\n*/ color: #bfbfbf; /*\n*/}body #miniheader table {/*\n*/ background-color: #1f1f1f; /*\n*/}body #miniheader #miniheader_searchbox .b_searchboxForm {/*\n*/ box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 2px 4px 0 rgba(0,0,0,.16);/*\n*/ -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px 0 rgba(255, 255, 255, 0.16); /*\n*/}body .ftrP11 { /*\n*/ color: #e8e8e8;/*\n*/}body .ftrSSL { /*\n*/ color: #a7a7a7; /*\n*/}body span#fltIdtLnk { /*\n*/ color: #c3c3c3;/*\n*/}body #ftrB { /*\n*/ background-color: #eaeaea00; /*\n*/}body #ftr_pane { /*\n*/ background-color: #313131;/*\n*/}body #fltIdtLnk img { /*\n*/ filter: invert(1);/*\n*/} body .touchQuery .carousel .carousel-controls, .touchQuery .carousel .items, .touchQuery .carousel .item, .touchQuery .carousel .carousel-controls .nav_left, .touchQuery .carousel .carousel-controls .nav_right {/*\n*/ background: #fff0;/*\n*/} body #rfPane {/*\n*/ background: #fff0; /*\n*/} body #tabcontrol_7_8F3661_menu .tab-active { /*\n*/ background-color: #232323;/*\n*/ /*\n*/ color: #d8d8d8;/*\n*/} body /*\n*/#tabcontrol_7_8F3661_menu .tab-active:hover {/*\n*/ color: #fff;/*\n*/} body .tab-navl.tab-disable, .tab-navr.tab-disable {/*\n*/ background-color: #ffffff00;/*\n*/ color: #e2e2e2;/*\n*/} body .tab-navl.tab-disable:hover, .tab-navr.tab-disable:hover {/*\n*/ background-color: #ffffff00;/*\n*/ color: #444;/*\n*/} body .tab-head svg{filter:invert(1);}#tabcontrol_7_8F3661_menu>li {/*\n*/ background-color: #ffffff00;/*\n*/ /*\n*/ color: #adadad;/*\n*/} body #tabcontrol_7_8F3661_menu>li:hover {/*\n*/ color: #e2e2e2;/*\n*/ position: relative;/*\n*/} body .rc_herotabheader .tab-head {/*\n*/ border-bottom: 1px #585858;/*\n*/ border-bottom-style: double;/*\n*/} body .tab-navr, body .tab-navl {/*\n*/ background-color: #ffffff00;/*\n*/} body .tab-navl:hover, .tab-navr:hover {/*\n*/ background-color: #212121;/*\n*/ color: #444;/*\n*/}body .tab-menu .tab-active {/*\n*/ box-shadow: inset 0 -3px 0 0 #111;/*\n*/ background-color: #ffffff00 !important ;/*\n*/ line-height: 40px;/*\n*/ color: #e0e0e0 !important ;/*\n*/} .tab-menu li {/*\n*/ background-color: #ffffff00 !important ; /*\n*/ color: #bfbfbf !important ;/*\n*/} .tab-menu .tab-navl:hover, .tab-menu .tab-navr:hover {/*\n*/ background-color: #ccc0 !important ;/*\n*/ color: #444 !important ;/*\n*/} .tab-menu li:hover { color: #fff !important ; } ';
document.getElementsByTagName('head')[0].appendChild(style);