Color Code Individual Google Tasks

Looks for specific key words and changes the background of the cell of a google task to a predefined color

< Commentaires sur Color Code Individual Google Tasks

Question / commentaire

§
Posté le: 29/06/2019

Does this work with the latest Google Tasks?

Hi, this is exactly what I need but doesn't appear to be working with Google Tasks (G suite) as of June 2019 - any hints as to what I need to do to get it working? Thanks for your help

§
Posté le: 29/06/2019

I haven't used it in a years. Google calendar has updated their css, probably passing it though some obfuscation/minimization tool. They now treat the tasks and calendar events on the html level very similarly.

If you change:

var checkBox = document.querySelectorAll('span.tc-icon');

to

var checkBox = document.querySelectorAll('span.yzifAd');

I can't guarantee it will work for you because the css class might be uniquely generated for each user and I can't test that. If it doesn't work you can always open developer tools and inspect the html/css yourself if you are familiar with it.

It'll should work again, but it should work on events and tasks equally.You may want the script to work equally on events and task or you may not. As far as a couple of minutes of looking I don't see an easy way to restrict it to only work on tasks unless you focus on the 'ynRLnc' class and look for 'task: TASKKEYWORD' but that might only separate tasks from calendar events that doesn't have "task:" in the title. I don't know, I don't like the obfuscation of/auto generation of non-human readable css.

Poster une réponse

Connectez-vous pour poster une réponse.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元