Always dark mode

always dark, removes background and header ad

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Always dark mode
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  always dark, removes background and header ad
// @author       Bum
// @match        https://www.instant-gaming.com/*
// @grant        GM_addStyle
// ==/UserScript==
function GM_addStyle(css) {
        const style = document.getElementById("GM_addStyle") || (function() {
            const style = document.createElement('style');
            style.type = 'text/css';
            style.id = "GM_addStyle";
            document.head.appendChild(style);
            return style;
        })();
        const sheet = style.sheet;
        sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
    console.log(css);
    }
GM_addStyle ( `
#backgroundLink{
pointer-events:none;
}
` );
GM_addStyle ( `
#home-top-banner-wrapper{
display:none;
}
` );

GM_addStyle ( `
#backgroundLink{
    background : #444 !important;
}
` );
(function() {
    'use strict';

var body = document.body;

body.classList.add("darkmode");
})();