Skip to content

Instantly share code, notes, and snippets.

@robobenklein
Last active April 17, 2018 04:33
Show Gist options
  • Save robobenklein/7633f21b65ab1e783dbac4d73d649d14 to your computer and use it in GitHub Desktop.
Save robobenklein/7633f21b65ab1e783dbac4d73d649d14 to your computer and use it in GitHub Desktop.
Hey look I can use the same tricks I used on Inbox in Google Calendar, cool.
// ==UserScript==
// @name Dark Google Calendar using chrome filters
// @include https://calendar.google.com/*
// @grant GM_addStyle
// @run-at document-start
// @version 2018.04.17
// @description Robobenklein found another Google Service needing a dark theme.
// ==/UserScript==
GM_addStyle ( `
img {
filter: invert(100%) hue-rotate(180deg) !important;
}
:before {
filter: invert(100%) hue-rotate(180deg) brightness(1.1) contrast(110%);
background-color: black !important;
}
body {
filter: invert(100%) hue-rotate(180deg) brightness(1.1) contrast(1.1);
background-color: black;
}
` );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment