MozillaZine

Changing the reminder values proposed by default

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
BlueCockroach
 
Posts: 4
Joined: May 31st, 2016, 12:59 am

Post Posted November 13th, 2017, 2:15 am

Hello.

When you create or edit an event, or when a reminder shows up, there are several delay values proposed by default for the notification : 0 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, 12 hours, 1 day, 2 days, 1 week ...

I would like to change this set of values in order to include values that suit better my own needs.

How can I do this ?

DanRaisch
Moderator

User avatar
 
Posts: 117631
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted November 13th, 2017, 5:23 am

Moving to Calendar forum.

WaltS48

User avatar
 
Posts: 3445
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Post Posted November 13th, 2017, 7:23 am

Go all the way down to the bottom of the drop down and choose Custom... doesn't work for you?
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5

BlueCockroach
 
Posts: 4
Joined: May 31st, 2016, 12:59 am

Post Posted November 13th, 2017, 8:52 am

WaltS48 wrote:Go all the way down to the bottom of the drop down and choose Custom... doesn't work for you?

Hello. Sorry if I was not clear : I know that I can change the values by choosing 'custom..' , it is only that I have to do it every time (so dozens of times per week).

I wish to choose the default proposed values so that I don't have to choose 'custom...' every time.

morat
 
Posts: 2421
Joined: February 3rd, 2009, 6:29 pm

Post Posted November 14th, 2017, 9:31 am

I changed the "5 minutes before" reminder to "8 minutes before" with the userChromeJS extension.

Code: Select all
/* Thunderbird userChrome.js */

(function(){

if (location == "chrome://calendar/content/calendar-event-dialog.xul") {

  setTimeout(function () {

    var iframe = document.getElementById("lightning-item-panel-iframe");
    var doc = iframe.contentDocument;
    var menuitem = doc.getElementById("reminder-5minutes-menuitem");
    menuitem.setAttribute("label", "8 minutes before");
    menuitem.setAttribute("length", "8");

  }, 1000);

}

})();

http://userchromejs.mozdev.org/
http://userchromejs.mozdev.org/faq.html

Instructions:

1. install userChromeJS extension
2. close email client
3. create or edit the userChrome.js file in the chrome folder in the profile folder
4. open email client with the -purgecaches command line option

i.e.

thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches

You have to purge the caches only after creating or editing the userChrome.js file.

Reference
http://dxr.mozilla.org/comm-esr52/searc ... s-menuitem

userChromeJS 2.0 (signed)
Lightning 5.4.4
Thunderbird 52.4.0
Windows 7 SP1 32-bit

BlueCockroach
 
Posts: 4
Joined: May 31st, 2016, 12:59 am

Post Posted November 15th, 2017, 2:21 am

Hello.

I suspect that the list of default values must be somewhere in a config file and that all there is to do, is edit this file. It is indeed probably not hard-coded (or at least, that is not the way I would do it).
The question is : where is this file ?

Return to Calendar


Who is online

Users browsing this forum: No registered users and 1 guest