Google Docs Dark Theme

Make Google Docs a bit darker

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 Docs Dark Theme
// @namespace    googleDarkTheme
// @version      0.3
// @description  Make Google Docs a bit darker
// @author       JetDave
// @match        https://docs.google.com/document/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.body.style.filter = "invert(0.9)";
    window.addEventListener("DOMNodeInserted",invertImgs);
    window.addEventListener("load",invertImgs)
    // kix-embeddedobject-image
    function invertImgs(){
        var elms = document.getElementsByTagName("img");
        for(let elm of elms){
            elm.style.filter = "invert(1)";
        }
        var elms2 = document.getElementsByClassName("kix-spelling-error-overlay");
        for(let elm of elms2){
            elm.style.filter = "invert(1)";
        }
        var elms3 = document.getElementsByClassName("kix-embeddedobject-image");
        for(let elm of elms3){
            elm.style.filter = "invert(1)";
        }
        var elms4 = document.getElementsByClassName("link-bubble-thumbnail-image");
        for(let elm of elms4){
            elm.style.filter = "invert(1)";
        }
    }
})();