Greasy Fork is available in English.

Colorize GCal:monthly timed events

Colored background for Google Calendar timed events in month view

< Rückmeldungen auf Colorize GCal:monthly timed events

Rezension: OK - Skript funktioniert, hat aber Fehler

§
Veröffentlicht: 12.07.2016

Doesn't work under Firefox 47.0

What's the best way to debug?

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Install Greasemonkey addon first, which is required for most userscripts to work, then install the userscript. It works here in FF48.

§
Veröffentlicht: 12.07.2016

Greasemonkey, is of course, already installed.

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Well, try opening the devtools console (F12 key), maybe there are some error messages.

§
Veröffentlicht: 12.07.2016

F.i. this script works well.

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Well, I don't know why it doesn't work for you.

§
Veröffentlicht: 12.07.2016

Where do I have to look exactly in the devtools console?

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

image

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

I've installed FF47 portable, Greasemonkey, this userscript - it worked.

§
Veröffentlicht: 12.07.2016

Here is a screenshot and here is the content.

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Unfortunately the log isn't helpful as all the errors are caused by the site scripts. I have not a slightest idea why it doesn't work for you.

§
Veröffentlicht: 12.07.2016

Very strange...

If I activate the same buttons (JS, Logging, Server), then I get the same results as you posted here:

image

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Please post a screenshot of some day in the monthly calendar view, maybe we're talking about different things.

§
Veröffentlicht: 12.07.2016

See here

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Huh. Please post a screenshot after rightclicking a time label and then Inspect:

image

§
Veröffentlicht: 12.07.2016

Here it is.

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

For some reason the structure is different. I've updated the script, try it.

§
Veröffentlicht: 12.07.2016

Wohoo, now it works! Thanks!

But the colors do not match. An all-day event looks slightly different, than a timed one. Ideally, both events, the all-day and the timed one, should look the same, with the same background and text color.

Is that possible with this script?

BTW, did you notice my answer on this request?

Thanks in advance!

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

Try the updated version.

§
Veröffentlicht: 12.07.2016

It's getting better, see here, but they still don't match.

woxxomVerfasser
§
Veröffentlicht: 12.07.2016

I don't know why GCal behaves differently for us, both styles match here. Disable my userscript, reload the calendar page and make a screenshot of devtools inspector panel for the two green bars. Also make sure to expand all sub-nodes:

image

(use the first button in the devtools toolbar on the top twice to click each appointment)

§
Veröffentlicht: 12.07.2016

Have a look here.

woxxomVerfasser
§
Veröffentlicht: 12.07.2016
Bearbeitet: 12.07.2016

Yeah the colors are different: #16a765 and #007d39. I'm not sure there's anything I can do about it.

§
Veröffentlicht: 13.07.2016

OK, never mind. Thanks for creating this script though!

§
Veröffentlicht: 13.07.2016

@wOxxOm If you can fix it somehow. I'm willing to give you a bit of money on paypal if needed. I really need this script for my mom.

woxxomVerfasser
§
Veröffentlicht: 13.07.2016

I don't understand why color difference needs fixing. Also I don't see it here so you'd have to give me a complete list of all color pairs (their hex values from devtools inspector) used in your GCal.

§
Veröffentlicht: 22.07.2016

@wOxxOm Hey, finally had time to look into it. I now understand how your scripts works (using font color as background color) so I understand why changing that color would be a mess. I'll just try making the colors of the calendars as bright as possible so that the slightly darker version on the month view doesn't get really dark.

Thank you very much for the script

Antwort schreiben

Anmelden um eine Antwort zu senden.