GitHub night mode with reversed colors

Blindlingly white backgrounds at night? No problem, tiny and futureproof.

La data de 11-02-2017. Vezi ultima versiune.

// ==UserScript==
// @name        GitHub night mode with reversed colors
// @description Blindlingly white backgrounds at night? No problem, tiny and futureproof.
// @namespace   https://greasyfork.org/users/4813-swyter
// @match       *://github.com/*
// @version     2
// @grant       GM_addStyle
// @run-at      document-start
// ==/UserScript==

GM_addStyle
(`
  html
  {
    background-color: white;
    color: black;
    filter: contrast(110%) invert(85%) hue-rotate(90deg);
  }

  img
  {
    filter: invert(125%) hue-rotate(-90deg);
  }
`)

document.addEventListener('DOMContentLoaded', function()
{
  document.querySelector("[role=banner]").classList.remove("header-dark");
})