Google Classroom Dark Mode Theme

A dark mode theme for Google Classroom. For all the students that prefer night over day.

Version au 10/09/2020. Voir la dernière version.

Vous devrez installer une extension telle que Tampermonkey, Greasemonkey ou Violentmonkey pour installer ce script.

Vous devrez installer une extension telle que Tampermonkey ou Violentmonkey pour installer ce script.

Vous devrez installer une extension telle que Tampermonkey ou Violentmonkey pour installer ce script.

Vous devrez installer une extension telle que Tampermonkey ou Userscripts pour installer ce script.

Vous devrez installer une extension telle que Tampermonkey pour installer ce script.

Vous devrez installer une extension de gestionnaire de script utilisateur pour installer ce script.

(J'ai déjà un gestionnaire de scripts utilisateur, laissez-moi l'installer !)

Vous devrez installer une extension telle que Stylus pour installer ce style.

Vous devrez installer une extension telle que Stylus pour installer ce style.

Vous devrez installer une extension telle que Stylus pour installer ce style.

Vous devrez installer une extension du gestionnaire de style pour utilisateur pour installer ce style.

Vous devrez installer une extension du gestionnaire de style pour utilisateur pour installer ce style.

Vous devrez installer une extension du gestionnaire de style pour utilisateur pour installer ce style.

(J'ai déjà un gestionnaire de style utilisateur, laissez-moi l'installer!)

// ==UserScript==
// @name         Google Classroom Dark Mode Theme
// @namespace    https://greatest.deepsurf.us/scripts/395319-google-classroom-dark-mode-theme
// @version      0.4.0
// @description  A dark mode theme for Google Classroom. For all the students that prefer night over day.
// @author       ThaCheeseBun
// @match        *://classroom.google.com/*
// @grant        none
// @license      MIT; https://mit-license.org/
// ==/UserScript==

(function() {
    'use strict';

    var style = `body{background:#2c2c2c;color:#fff}.joJglb{background:#3c3c3c;border-bottom:none;-webkit-box-shadow:0 2px 11px 0 rgba(0, 0, 0, 0.75);-moz-box-shadow:0 2px 11px 0 rgba(0, 0, 0, 0.75);box-shadow:0 2px 11px 0 rgba(0, 0, 0, 0.75)}.joJglb.kLHn3{-webkit-box-shadow:0 2px 11px 0 rgba(0, 0, 0, 0.75);-moz-box-shadow:0 2px 11px 0 rgba(0, 0, 0, 0.75);box-shadow:0 2px 11px 0 rgba(0, 0, 0, 0.75)}.IqJTee,.ViCi4,.cjq2Db,.gb_qa svg,.xSP5ic{color:#fff}.ZGnOx{background:#2c2c2c}.Aopndd{background:#3c3c3c;border:0.0625rem solid #3c3c3c}.SZ0kZe{border-top:0.0625rem solid #3c3c3c}.apFsO.onkcGd,.apFsO.onkcGd:visited{color:#fff}.oBSRLe{color:#fff}.ETRkCe{background:#3c3c3c;-webkit-box-shadow:2px 0 11px 0 rgba(0, 0, 0, 0.75);-moz-box-shadow:2px 0 11px 0 rgba(0, 0, 0, 0.75);box-shadow:2px 0 11px 0 rgba(0, 0, 0, 0.75)}.asQXV{color:#fff}.dDKhVc{color:#cfcfcf}.I7OXgf{background:#4c4c4c}.HyS0Qd .n9IS1{background:#2c2c2c}.qTs5Xc{color:#cfcfcf}.AKIybd{background:transparent}.HyS0Qd:not(.RDPZE):hover .n9IS1{background:#3c3c3c}.poFWNe{color:#fff}.UQuaGc{color:#dfdfdf}.UQuaGc.RDPZE{color:#afafaf}.l3F1ye,.l3F1ye .TpQm9d{color:#1a73e8}.rpo4wf{color:#fff}.p0oLxb{color:#efefef}.JPdR6b{background:#3c3c3c;-webkit-box-shadow:0 0 12px 0 rgba(0, 0, 0, 0.75);-moz-box-shadow:0 0 12px 0 rgba(0, 0, 0, 0.75);box-shadow:0 0 12px 0 rgba(0, 0, 0, 0.75)}.z80M1{color:#dfdfdf}.z80M1.FwR7Pc{background:#6c6c6c}.Evt7cb,.Evt7cb:visited{color:#efefef}.fKz7Od .TpQm9d{color:#efefef}.DShyMc-AaTFfe .VnOHwf-Tvm9db,.DShyMc-AaTFfe.CNpREd .VnOHwf-Tvm9db,.DShyMc-AaTFfe.VnOHwf-Tvm9db{color:#fff}.DShyMc-AaTFfe .eumXzf:after{border-color:#dfdfdf}.DShyMc-AaTFfe .VnOHwf-Wvd9Cc,.DShyMc-AaTFfe.CNpREd .VnOHwf-Wvd9Cc,.DShyMc-AaTFfe.VnOHwf-Wvd9Cc{color:#cfcfcf}.F7l5Ob-c66ULb{color:#fff}.F7l5Ob-xl07Ob{background:#3c3c3c;-webkit-box-shadow:0 0 12px 0 rgba(0, 0, 0, 0.75);-moz-box-shadow:0 0 12px 0 rgba(0, 0, 0, 0.75);box-shadow:0 0 12px 0 rgba(0, 0, 0, 0.75)}.F7l5Ob-DNETlb-auswjd,.F7l5Ob-DNETlb-sn54Q{background:#5c5c5c}.F7l5Ob-DNETlb{color:#fff}.F7l5Ob-AXxpWd{border-top:none}.i9glDf{color:#fff}.wSo7x{background:#3c3c3c;border-bottom:0.0625rem solid #2c2c2c;border-right:0.0625rem solid #3c3c3c}.onkcGd,.onkcGd:visited{color:#dfdfdf}.WN8ale{border-bottom:0.0625rem solid #3c3c3c}.IMvYId,.IMvYId:visited{color:#efefef}.A6dC2c{color:#fff}.DShyMc-MzkyODU4ODc3MjZa .VnOHwf-Tvm9db,.DShyMc-MzkyODU4ODc3MjZa.CNpREd .VnOHwf-Tvm9db,.DShyMc-MzkyODU4ODc3MjZa.VnOHwf-Tvm9db{color:#fff !important}.DShyMc-MzkyODU4ODc3MjZa .eumXzf:after{border-color:#efefef !important}.DShyMc-MzkyODU4ODc3MjZa .VnOHwf-Wvd9Cc,.DShyMc-MzkyODU4ODc3MjZa.CNpREd .VnOHwf-Wvd9Cc,.DShyMc-MzkyODU4ODc3MjZa.VnOHwf-Wvd9Cc{color:#dfdfdf !important}.d4Fe0d{background:#3c3c3c;border:none}.EZrbnd{color:#fff}.sdDCme{color:#efefef}.DShyMc-MzkyODU4ODc3MjZa .MymH0d:hover .VBEdtc-Wvd9Cc,.DShyMc-MzkyODU4ODc3MjZa .VBEdtc-Wvd9Cc:hover,.DShyMc-MzkyODU4ODc3MjZa.MymH0d:hover .VBEdtc-Wvd9Cc{color:#fff !important}.GWZ7yf{background:#3c3c3c}.K6Ovqd{color:#fff}.hgjBDc{background:#3c3c3c}.fWf7qe .Yalane{background:#4c4c4c}.CYSZae{color:#cfcfcf}.fWf7qe:not(.RDPZE):hover .Yalane{background:#5c5c5c}.DShyMc-MzkyODU4ODc3MjZa .AkVYk:not(.RDPZE).u3bW4e .snByac,.DShyMc-MzkyODU4ODc3MjZa .D3oBEe input:not([disabled]):focus~.snByac,.DShyMc-MzkyODU4ODc3MjZa .D3oBEe:not(.RDPZE).u3bW4e .snByac,.DShyMc-MzkyODU4ODc3MjZa .HyS0Qd input:not([disabled]):focus~.snByac,.DShyMc-MzkyODU4ODc3MjZa .HyS0Qd:not(.RDPZE).u3bW4e .snByac,.DShyMc-MzkyODU4ODc3MjZa .fWf7qe:not(.RDPZE).u3bW4e .snByac{color:#cfcfcf !important}.oQ5Hqe{background:transparent}.hqfVKd{color:#fff}.qk0lee:focus:after{background:#3c3c3c}.L9GLUe{color:#fff}.Lzdwhd-BrZSOd,.yY3pFc-BrZSOd{color:#cfcfcf}.O98Lj{color:#fff}.x0HGk{background:#4c4c4c;-webkit-border-radius:0.5rem;border-radius:0.5rem}.cSyPgb{color:#bcbcbc}.s2g3Xd{border-top:none}.s2g3Xd .ldHTPe{border-top:0.0625rem solid #4c4c4c}.DShyMc-MjA4NzgxMDAzOTFa .ZoT1D:hover .idtp4e,.DShyMc-MjA4NzgxMDAzOTFa .ZoT1D:hover .j6KDAd,.DShyMc-MjA4NzgxMDAzOTFa .ZoT1D:hover.idtp4e,.DShyMc-MjA4NzgxMDAzOTFa .ZoT1D:hover.j6KDAd,.DShyMc-MjA4NzgxMDAzOTFa .tUJKGd:not(.xp2dJ):not(.rZXyy):hover .idtp4e,.DShyMc-MjA4NzgxMDAzOTFa .tUJKGd:not(.xp2dJ):not(.rZXyy):hover .j6KDAd,.DShyMc-MjA4NzgxMDAzOTFa .tUJKGd:not(.xp2dJ):not(.rZXyy):hover.idtp4e,.DShyMc-MjA4NzgxMDAzOTFa .tUJKGd:not(.xp2dJ):not(.rZXyy):hover.j6KDAd{background:#4c4c4c !important}.DShyMc-MzkyODU4ODc3MjZa .DqwBN:not(.RDPZE) .TpQm9d,.DShyMc-MzkyODU4ODc3MjZa .l3F1ye:not(.RDPZE) .TpQm9d{color:#fff !important;fill:#fff !important}.tfGBod.tfGBod:not(.xp2dJ){background:#3c3c3c;-webkit-border-radius:0.5rem;border-radius:0.5rem;border-top:0.0625rem solid #2c2c2c}.O9YpHb{border-top:0.0625rem solid #4c4c4c}.jWCzBe{border-bottom:none}.zIKt9b .lGm3nb .JRtysb{color:#5f6368;fill:#5f6368}.lziZub,.lziZub:visited{color:#efefef;s}.fKz7Od{color:#fff}.DShyMc-MzkyODU4ODc3MjZa .BEAGS:not(.RDPZE){color:#fff !important}.DShyMc-MzkyODU4ODc3MjZa .BEAGS:not(.RDPZE):hover{border-color:#cfcfcf !important}.DShyMc-MzkyODU4ODc3MjZa .nRLOzd:focus,.DShyMc-MzkyODU4ODc3MjZa .nRLOzd:focus *,.DShyMc-MzkyODU4ODc3MjZa .nRLOzd:hover,.DShyMc-MzkyODU4ODc3MjZa .nRLOzd:hover *{color:#cfcfcf !important}.DShyMc-MzkyODU4ODc3MjZa .bFjUmb-Ysl7Fe{background:#4c4c4c !important}.EV3wqc > a:focus,.EV3wqc > a:hover{color:#cfcfcf}.cQ1lCe{background:#3c3c3c;border-radius:0.5rem;border-bottom:0.0625rem solid #2c2c2c}.ksaOtd{color:#fff}.DodiNb,.KATzH,.KATzH:visited,.rHUkWd{color:#fff}.cQ1lCe:focus,.cQ1lCe:hover{background:#4c4c4c}.bkKgJe div .cQ1lCe{border-radius:0.5rem 0.5rem 0 0}.uQ3ESd{background:#3c3c3c;border-radius:0 0 0.5rem 0.5rem}.VDj5V{border-top:0.0625rem solid #2c2c2c}.DShyMc-MzkyODU4ODc3MjZa .HQ8yf:not(.RDPZE) a{color:#fff !important}.yckQJf{background:#3c3c3c;border-radius:0.5rem}.HZ3kWc,.WOPwXe,.asQXV-FGzYL,.gJk24c,.gb_8b,.gb_Mb.gb_Mb,.gb_l .gb_tb,.gb_zb.gb_zb,.nk37z{color:#fff}.E5f6Vd{border-top:0.0625rem solid #4c4c4c}.K2mXPb,.gb_9c .gb_le,.gb_Eb > svg.gb_Fb,.gb_Hb > svg.gb_Ib,.gb_Ic svg,.gb_Tc .gb_le,.gb_rb > svg.gb_sb,.gb_ta svg,.l3F1ye,.l3F1ye .TpQm9d,.tLDEHd{color:#fff}.DShyMc-AaTFfe .MymH0d:hover .UISY8d-Ysl7Fe,.DShyMc-AaTFfe .UISY8d-Ysl7Fe:hover,.DShyMc-AaTFfe.MymH0d:hover .UISY8d-Ysl7Fe{background-color:#3c3c3c}.J1raN:hover,.Y5FYJe.RDPZE,.gb_Bb.gb_Bb,.gb_ac,.gb_cb.gb_db,.gb_l .gb_vb{color:#cfcfcf}.MHxtic:hover{background-color:#3c3c3c}.MHxtic:not(:last-child){border-bottom:0.0625rem solid #1c1c1c}.LKqFXc{border-top:0.0625rem solid #1c1c1c}.JsqLM.pCcXPe,.udxSmc{color:#afafaf}.Xp0OCe{border:0.0625rem solid #3c3c3c}.BOW64{border-right:0.0625rem solid #1c1c1c}.JsqLM.N4XV7d{color:#999999}.gb_F,.ncFHed{background:#4c4c4c}.gb_Bb:hover,.gb_Ub > .gb_Tb:hover,.gb_rb:hover{background:#5c5c5c}.gb_Lb.gb_Lb,.gb_Mb.gb_Mb,.gb_cb.gb_db,.gb_l .gb_qb,.gb_zb.gb_zb,.ncFHed .MocG8c.KKjvXb,.tfGBod.tfGBod div div:first-child{background:#3c3c3c}.bFjUmb-Ysl7Fe{background-color:#2c2c2c !important}.d6CWTd,.gb_Kb,.gb_Mb.gb_Mb,.gb_Qb,.gb_zb.gb_zb{border-color:#3c3c3c}`;
    var elem = document.createElement('style');
    elem.id = 'classroom-dark-theme';
    elem.type = 'text/css';
    elem.innerText = style;
    document.head.appendChild(elem);
})();