CityInc - Dark Background

With dark user extension you can't achieve the true dark mode cause of the background gradient. So i created a simple script that removes gradient and adds darker color to the background.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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         CityInc - Dark Background
// @namespace    DQampire
// @version      1.0
// @description  With dark user extension you can't achieve the true dark mode cause of the background gradient. So i created a simple script that removes gradient and adds darker color to the background.
// @author       DQampire
// @grant        GM_addStyle
// @include http://cityinc.se/*
// ==/UserScript==

(function() {
let css = `
   html, body { background: #0a0a0a !important; }
`;
if (typeof GM_addStyle !== "undefined") {
  GM_addStyle(css);
} else {
  let styleNode = document.createElement("style");
  styleNode.appendChild(document.createTextNode(css));
  (document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
})();