Skip to content

Instantly share code, notes, and snippets.

@robobenklein
Last active April 10, 2018 01:24
Show Gist options
  • Save robobenklein/c51bba9197dcdc7d8bd6c89730ad7970 to your computer and use it in GitHub Desktop.
Save robobenklein/c51bba9197dcdc7d8bd6c89730ad7970 to your computer and use it in GitHub Desktop.
Dark theme for inbox, trying to be as simple as possible. Designed for Chrome & Violentmonkey.
// ==UserScript==
// @name Dark inbox using chrome filters
// @include https://inbox.google.com/*
// @grant GM_addStyle
// @run-at document-start
// @version 2018.04.09
// @description Robobenklein got tired of Google Inbox without a dark theme.
// ==/UserScript==
GM_addStyle ( `
body {
background-color: black;
}
#Nr {
filter: invert(100%) hue-rotate(180deg) contrast(1.1) brightness(120%);
background-color: white;
}
#Nr img {
filter: invert(100%) hue-rotate(180deg);
}
#Nr img:not([class]) {
filter: none;
}
#fv {
filter: invert(100%) hue-rotate(180deg);
}
#fv img.io {
filter: invert(100%) hue-rotate(180deg);
}
` );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment