Blindlingly white backgrounds at night? No problem, tiny and futureproof.
目前為
// ==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");
})