I have a lot of events that have the same Start time and End time. When printing the monthly grid from the Lightning calendar (Thunderbird 45.2.0), is there a way to print just the Start times for these events?
Or, is there a way to print the monthly grid with just the Start time for all events (regardless of the End time)?
It seems strange that in the on-screen view, the End times are never printed, and in the printed grid, the End times are always printed, at least by default. I'm hoping Thunderbird/Lightning has a way to control this.
--SG
Printing just the starting times in monthly view
-
- Posts: 2
- Joined: August 25th, 2016, 4:28 pm
-
- Posts: 6421
- Joined: February 3rd, 2009, 6:29 pm
Re: Printing just the starting times in monthly view
You would need to hack the extension to change the print utility.
* edit extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\modules\calPrintUtils.jsm
* restart application
That hack removes the end times in the print preview dialog.
e.g. replace "9:00 AM–10:00 AM" with "9:00 AM"
Reference
http://dxr.mozilla.org/comm-esr45/sourc ... tUtils.jsm
* edit extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\modules\calPrintUtils.jsm
* restart application
Code: Select all
let itemInterval = cal.print.getItemIntervalString(item, boxDate);
+ itemInterval = itemInterval.replace(/\u2013.*/, "");
e.g. replace "9:00 AM–10:00 AM" with "9:00 AM"
Reference
http://dxr.mozilla.org/comm-esr45/sourc ... tUtils.jsm
-
- Posts: 2
- Joined: August 25th, 2016, 4:28 pm
Re: Printing just the starting times in monthly view
Thank you. Is there a link to instructions for modifying an extension?
-
- Posts: 6421
- Joined: February 3rd, 2009, 6:29 pm
Re: Printing just the starting times in monthly view
The extensions folder is in the profile folder.
http://kb.mozillazine.org/Profile_folder_-_Thunderbird
You can use wordpad.exe to edit a text file with unix line endings.
http://superuser.com/questions/362087
Find:
Replace with:
If you see the chrome.jar file in the extension folder, then remove the extension in the Add-ons Manager and install the extension from the AMO page, then the chrome folder appears instead of the chrome.jar file.
http://addons.mozilla.org/thunderbird/addon/2313
http://kb.mozillazine.org/Profile_folder_-_Thunderbird
You can use wordpad.exe to edit a text file with unix line endings.
http://superuser.com/questions/362087
Find:
Code: Select all
let itemInterval = cal.print.getItemIntervalString(item, boxDate);
Code: Select all
let itemInterval = cal.print.getItemIntervalString(item, boxDate);
itemInterval = itemInterval.replace(/\u2013.*/, "");
http://addons.mozilla.org/thunderbird/addon/2313