Google Night Mode

A dark theme for google

16.11.2017 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Google Night Mode
// @namespace    http://tampermonkey.net/
// @version      vbeta
// @description A dark theme for google
// @author       VapeHorization
// @match        https://www.google.fr/*
// @match        https://www.google.com/*
// @match        https://www.google.it/*
// @match        https://www.play.google.com/*
// @match        https://www.google.fi/*
// @match        https://www.google.es/*
// @match        https://www.google.eu/*
// @match        https://www.google.de/*
// @match        https://www.google.dd/*
// @match        https://www.google.dk/*
// @match        https://www.google.cz/*
// @match        https://www.google.cu/*
// @match        https://www.google.cn/*
// @match        https://www.google.ch/*
// @match        https://www.google.ca/*
// @match        https://www.google.ca/*
// @match        https://www.google.bf/*
// @match        https://www.google.be/*
// @match        https://www.google.bg/*
// @match        https://www.google.vn/*
// @match        https://www.google.va/*
// @match        https://www.google.ru/*
// @match        https://www.google.ro/*
// @match        https://www.google.com.qa/*
// @match        https://www.google.pt/*
// @match        https://www.google.pl/*
// @match        https://www.google.no/*
// @match        https://www.google.nl/*
// @match        https://www.google.com.mx/*
// @match        https://www.google.co.ma/*
// @match        https://www.google.lt/*
// @match        https://www.google.la/*
// @match        https://www.google.co.jp/*
// @match        https://www.google.je/*
// @match        https://www.google.is/*
// @match        https://www.google.ie/*
// @match        https://www.google.iq/*
// @match        https://www.google.hu/*
// @match        https://www.google.com.hk/*
// @match        https://www.google.gp/*
// @match        https://www.google.ht/*
// @match        https://www.google.hr/*
// @match        https://www.google.gl/*
// @grant        none
// ==/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(' div#viewport { background: #333 !important; }');

addGlobalStyle('#epbar #epb-notice , #epbar{ background: #333 !important; }');//CANADIAN VERSION

//HIDE THE COUNTRY
addGlobalStyle('._Cbu { background: #333 !important; }');

addGlobalStyle('._Ubu { border: solid 1px #333 !important; } ');

addGlobalStyle('#fbar { border: solid 1px #333 !important; } ');

addGlobalStyle('._Ubu { background: #333 !important; }');

addGlobalStyle('._Vbu { color: #333 !important; }');

addGlobalStyle('._Vbu { cursor: default !important; ');
//--------------

addGlobalStyle('.fbar { background: #333 !important; }');

//SEARCH BAR
addGlobalStyle('.gsfi, .lst , .sbib_b { background: #6e6e6e !important; }');

addGlobalStyle('.gsfi, .lst , .sbib_b { color: #f2f2f2 !important; } ');

addGlobalStyle('.gsst_a , #gs_st0  { background: #6e6e6e !important; }');

addGlobalStyle('.gsst_a { border-left: solid #6e6e6e 3px !important; } ');

addGlobalStyle('.gsst_a { border-bottom: solid #6e6e6e 1px !important; }');


addGlobalStyle('[role=presentation] { background: #333 !important; }');

addGlobalStyle('.sbsb_g { background: #6e6e6e !important; }');

addGlobalStyle('.sbsb_g{ border-top: solid 1px white !important; }');

addGlobalStyle('.sbdd_a[dir=ltr] .sbsb_j { background: #6e6e6e !important; }');

addGlobalStyle('[role=presentation] { color: #f2f2f2 !important; } ');

addGlobalStyle('[role=presentation]:hover { border-bottom: solid white 1px !important; } ');

addGlobalStyle('[role=option] { color: #f2f2f2 !important; } ');

addGlobalStyle(':dir(ltr) { color: #f2f2f2 !important; } ');

addGlobalStyle('.sbsb_g { background: white !important; }');

addGlobalStyle('.sbdd_a input { background: #333 !important; }');

addGlobalStyle('.sbdd_a input { border: solid 2px #6e6e6e !important; }');

addGlobalStyle('.sbdd_a input { margin-top: -4px !important; } ');

addGlobalStyle('.sbdd_a input { height: 25px !important;  }');

addGlobalStyle('.sbdd_a input:hover { color: #f2f2f2 !important; }' );

addGlobalStyle('.sbdd_a input { color: #e6e6e6 !important; }');

addGlobalStyle('#sbsb_f { color: #f2f2f2 !important; }');

addGlobalStyle('#sbsb_f:hover { color: #e6e6e6 !important; }');
//----------------

//BUTTON
addGlobalStyle('.jhp input[type="submit"], .gbqfba { background: #333 !important; }');

addGlobalStyle('.jhp input[type="submit"], .gbqfba { color: white !important; }');
//---------------

//GMAIL BUTTON , ETC
addGlobalStyle('#gb#gb a.gb_P, #gb#gb span.gb_P  { color: white !important; }');
//-------------------

addGlobalStyle('body {background: #333 !important; } ');

//PROFILE
addGlobalStyle('.gb_fa { background: #333 !important; }');

addGlobalStyle('.gb_Bb { color: white !important;  }');

addGlobalStyle('.gb_Fb { background: #6e6e6e !important; }');

addGlobalStyle('.gb_Fa, #gb a.gb_Fa.gb_Fa { color: #333 !important; } ');
//-----------------------

//SEARCH PAGE

addGlobalStyle('#hdtb.notl div , div.sfbg, div.sfbgg{ background: #6e6e6e !important; }');

//SEARCH BAR
addGlobalStyle('.sbib_b { border: solid white 1px !important; } ');

addGlobalStyle('.srp #gs_st0 { border-left: solid white 1px !important; }');

addGlobalStyle(' #gs_st0 { border-left: solid white 1px !important; } ');

addGlobalStyle('.sbico-, .srp #sfdiv { background: #6e6e6e !important; }');

addGlobalStyle('.sbico-c{ border-left: solid #e6e6e6 1px !important; }' );

addGlobalStyle('.sbib_b { border-right: solid #6e6e6e 1px !important; }');

//-------SEARCH-BAR-------

//TOP BAR
addGlobalStyle('#hdtb-msb .hdtb-mitem.hdtb-msel{ font-weight: bold !important; }');

addGlobalStyle('#hdtb .hdtb-mitem a { color: #e6e6e6 !important; }');

addGlobalStyle('#hdtb .hdtb-mitem a:hover { color: white !important; }');

addGlobalStyle('#hdtb-msb #hdtb-more, #hdtb-msb #hdtb-tls { color: white !important; } ');

addGlobalStyle('body.vasq .ab_tnav_wrp , .ab_tnav_wrp , #extabar { background: #333 !important; } ');

addGlobalStyle('#hdtb-msb #hdtb-tls:hover { background: #333 !important; }' );

addGlobalStyle('#hdtb .hdtb-mitem a:hover , body.vasq #hdtb-msb .hdtb-mitem.hdtb-msel:hover  { border: solid transparent 3px !important; } ');

addGlobalStyle('#hdtb .hdtb-mitem a:hover , body.vasq #hdtb-msb .hdtb-mitem.hdtb-msel:hover { background: #333 !important; } ');

addGlobalStyle(' , body.vasq #hdtb-msb .hdtb-mitem.hdtb-msel { height: 5px !important; } ');

addGlobalStyle('#hdtb-msb .hdtb-mitem.hdtb-msel, #hdtb-msb .hdtb-mitem.hdtb-msel-pre { color: lightblue !important; } ');

//TOOLS
addGlobalStyle('#hdtb.notl , #hdtb.notl, #hdtb.notl  { color: white !important; }');

addGlobalStyle('body.vasq .hdtb-mn-o, body.vasq .hdtb-mn-c { background: #333 !important; } ');

addGlobalStyle(' #hdtb.notl li { background: #333 !important; } ');

addGlobalStyle('#hdtb.notl a, #hdtb.notl div, #hdtb.notl li { color: white !important; }');

addGlobalStyle('#cdrlnk { background: #333 !important; } ');
//-------TOOLS------
addGlobalStyle('._dMq { background: #333 !important; }');

//-------TOP-BAR------------

addGlobalStyle('a:link { color: #e6e6e6 !important; }' );

addGlobalStyle('.st { color: gray !important; }' );

addGlobalStyle('._SWb a.fl { background: #333 !important; }' );

addGlobalStyle('#res a { color: #f2f2f2 !important; } ');

addGlobalStyle('#res h3 { color: white !important; }' );

addGlobalStyle('._Jvo , ._VSv , ._USv{ background: #6e6e6e !important; } ');

addGlobalStyle('.f { color: #f2f2f2 !important; }');

addGlobalStyle('cite { font-weight: bold !important; } ');

addGlobalStyle('#brs .med { color: white !important; } ');

//RENS
addGlobalStyle('.kno-ecr-pt { color: white !important; } ');

addGlobalStyle('.knowledge-panel.kp-blk .mod, ._kTi .mod { color: #c1c1c1 !important; } ');

addGlobalStyle('#rhs a { color: white !important; } ');
//-----RENS------

addGlobalStyle('.stp { color: #e6e6e6 !important; } ');

addGlobalStyle('._Iqg { color: lightblue !important; } ');

//TRANSLATER
addGlobalStyle('#tw-container { background: #949494 !important; }');

addGlobalStyle('.tw-data-placeholder { color: #333 !important; } ');

addGlobalStyle('svg:hover , .tw-menu-btn-image:hover , .tw-menu-btn:hover , #tw-source, #tw-target:hover , #tw-mic:hover { background: transparent !important; }' );

addGlobalStyle('.tw-lang-selector { background: #333 !important; }');

addGlobalStyle('.tw-lang-selector { color: #f2f2f2 !important; }');

addGlobalStyle('.tw-lang-selector , .tw-lang-selector:not(.tw-dl) { border: solid transparent 1px !important; } ');

addGlobalStyle('.tw-lang-selector { margin-left: 4px !important; } ');

addGlobalStyle('.tw-lang-selector-wrapper , .tw-lang-selector:not(.tw-dl) { border: solid transparent 1px !important; } ');

addGlobalStyle('#_fVd { background: #333 !important; } ');

addGlobalStyle('.tw-data-placeholder { color: white !important; } ');

addGlobalStyle('#center_col ._WGh .exp-txt-c { color: #e6e6e6 !important; } ');

addGlobalStyle('#center_col ._WGh .exp-txt-c { font-weight: bold !important; } ');
//-----TRANSLATER------
addGlobalStyle('.sbico-c { background: #6e6e6e !important; }');

addGlobalStyle('.sbico-c {border: none !important; } ');

addGlobalStyle('.hp .big #sfdiv { height: 30px !important; }');

//INFO
addGlobalStyle('._wCh { background: #6e6e6e !important; } ');

addGlobalStyle('._J3q { color: #e6e6e6 !important; } ');

addGlobalStyle('._wCh { border-radius: 2px !important; }');
//----INFO----

//-----SEARCH-PAGE-----

//RULES
addGlobalStyle('#maia-header { background: #6e6e6e !important; }');

addGlobalStyle('#maia-nav-x { background: #333 !important; }');

addGlobalStyle('html { background: #333 !important; }');

addGlobalStyle('#pp-header h1 { color: white !important; } ');

addGlobalStyle('h1+p, h2+p, h3+p, h4+p, h5+p, h6+p , #pp-wrapper{ color: #e6e6e6 !important; } ');

addGlobalStyle('#pp-wrapper .highlight, #pp-wrapper a.highlight, #pp-wrapper a.highlight:visited { background: #6e6e6e !important; } ');

addGlobalStyle('h1 { color: #f2f2f2 !important; } ');

addGlobalStyle('#pp-wrapper h2 , #pp-wrapper strong{ color: #f2f2f2 !important; }');

addGlobalStyle('#maia-footer-local , #maia-footer-global { background: #6e6e6e !important; }');

addGlobalStyle('#maia-footer h3 { color: white !important; } ');

addGlobalStyle('.maia-locales select { background: #333 !important; } ');

addGlobalStyle('.maia-locales select { color: #e6e6e6 !important; } ');
//-------RULES--------

//TERMS
addGlobalStyle('h2 { color: white !important; }');

addGlobalStyle('p { color: #e6e6e6 !important; }');

addGlobalStyle('.maia-aside { background: #333 !important; }');

addGlobalStyle('h4 { color: white !important; }');
//------TERMS-------
//OTHERS
addGlobalStyle('*:visited { color: #f2f2f2 !important; } ');

addGlobalStyle('.gb_ba, .gb_ba+.gb_ka, .gb_ma .gb_ka, .gb_ma .gb_ia { background: #333 !important; }');

addGlobalStyle('#gb a.gb_ja { background: #6e6e6e !important; } ');

addGlobalStyle('.gb_3:hover , .gb_O .gb_2:hover { color: black !important; }');
//-----OTHERS-----
addGlobalStyle('._wtf { color: lightblue !important; }' );// ._wtf