Created
March 1, 2018 07:09
-
-
Save adelton/a3a99c2bbde133145ab10d657e8494dd to your computer and use it in GitHub Desktop.
Google Calendar color undecided items
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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