Color Code tasks depending on the color of the dots

Colors individual task text in the color of the dot

  1. // ==UserScript==
  2. // @name Color Code tasks depending on the color of the dots
  3. // @namespace rtega
  4. // @description Colors individual task text in the color of the dot
  5. // @include https://www.google.com/calendar/*
  6. // @include https://calendar.google.com/*
  7. // @version 1.1
  8. // @grant none
  9. // ==/UserScript==
  10. document.addEventListener('DOMNodeInserted', function() {
  11.  
  12.  
  13. var checkBox = document.querySelectorAll('span.yzifAd');
  14. for (var J = checkBox.length-1; J >= 0; --J){
  15. if(checkBox[J].className.search("doneColor") == -1)
  16. {
  17. checkBox[J].className = checkBox[J].className + " doneColor";
  18. checkBox[J].style.color = checkBox[J].parentNode.parentNode.firstChild.firstChild.style.borderColor;
  19. }
  20. }
  21. }, false);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址