Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adelton/a3a99c2bbde133145ab10d657e8494dd to your computer and use it in GitHub Desktop.
Save adelton/a3a99c2bbde133145ab10d657e8494dd to your computer and use it in GitHub Desktop.
Google Calendar color undecided items
// ==UserScript==
// @name Google Calendar color undecided items
// @namespace adelton
// @description New 2018 Google Calendar, color undecided items to make clearer which calendar they are in
// @include https://www.google.com/calendar/*
// @include https://calendar.google.com/*
// @version 1.1
// @grant none
// ==/UserScript==
document.addEventListener('DOMNodeInserted', function() {
var i;
var cal_items = document.querySelectorAll('div.lFe10c');
for (i of cal_items) {
if (i.style.backgroundColor == "" && i.parentNode.style.backgroundColor == "") {
// i.style.parentNode.backgroundColor = i.style.color;
i.style.backgroundColor = i.style.color;
i.firstChild.style.color = "lightgrey";
// i.firstChild.style.filter = "blur(1px)";
}
}
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment