google-code-export / minimalist-google-calendar

Automatically exported from code.google.com/p/minimalist-google-calendar
1 stars 0 forks source link

Feature Request: Hide tasks sidebar label #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be technically possible to hide only the perennial 'Tasks' calendar? 
I'm sure many people do not use it and find its presence disturbing.

Original issue reported on code.google.com by itali...@gmail.com on 8 Feb 2011 at 8:23

GoogleCodeExporter commented 9 years ago
Good point. I'll definitely look into..

Original comment by anst...@gmail.com on 8 Feb 2011 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by anst...@gmail.com on 21 Feb 2011 at 1:41

GoogleCodeExporter commented 9 years ago
Any update on this? 

Original comment by Mitchell...@gmail.com on 4 Oct 2011 at 7:42

GoogleCodeExporter commented 9 years ago
I don't think it's possible, I just tried doing it myself with the custom CSS 
function, there's no way to distinguish Tasks from any other calendar, they all 
have the same class in the HTML

Original comment by burkyb...@gmail.com on 5 Oct 2011 at 4:01

GoogleCodeExporter commented 9 years ago
If you are running stylish or the google calender minimalist you can use this 
code, the only issue that I haven't resolved yet is the drop down box for the 
settings of this.
anyone know of ideas on how to get rid of that?
@namespace url(http://www.w3.org/1999/xhtml);

/*

  Google Calendar: hide Tasks in My calendars

*/

@-moz-document url-prefix("http://www.google.com/calendar/render"),

               url-prefix("https://www.google.com/calendar/render") {

div.calListRow div[title="Tasks"] { display: none !important; }

}

source=http://userstyles.org/styles/31022/google-calendar-hide-tasks-in-my-calen
dars

Original comment by james.as...@milsoft.com on 29 Mar 2012 at 5:55

GoogleCodeExporter commented 9 years ago
Disclaimer: I don't know what I'm doing. I've never tinkered about with 
userscripts or anything of the like before. The following may be a terrible 
solution but please forgive me... :)

I got rid of my Tasks calendar completely from the sidebar as follows:
 1. I installed the above script from http://userstyles.org/styles/31022/google-calendar-hide-tasks-in-my-calendars using the "Minimalist for Everything [Beta]" extension.

 2. I found that Minimalist lets you edit the code, so I did some Googling and some good old trial and error with the end result of replacing the line of code beginning with "div.calListRow" with:
        div.calList div:nth-child(3) { display: none !important; }

My Tasks calendar was the 3rd in the list, so I'm guessing that's why '3' works 
for me. I would assume that the addition/deletion of calendars would likely 
break the code, but I'm happy to edit it as I need to (it's not like I 
add/remove calendars very often).

I am _SO_ pleased with myself right now... ^_^6

Original comment by paulharr...@gmail.com on 25 Apr 2012 at 6:13

GoogleCodeExporter commented 9 years ago
Turns out that solution also hides the third (nth) calendar under the "Other 
calendars" section too. Oops.

Replacing the above-mentioned line of code with: 
        div.calList[aria-labelledby="clst_my"] div:nth-child(3) { display: none !important; }
makes it only apply to the "My calendars section".

Original comment by paulharr...@gmail.com on 25 Apr 2012 at 6:45