Always dark mode

always dark, removes background and header ad

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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");
})();