I can't read the full title of my Google Calendar events, because they're truncated to fit in the day box. And so a printout isn't as useful as it could be.
There used to be a greasemonkey plugin that changed the CSS to fix this, but Google have redesigned the calendar, and now the titles overlap each other and can't be read properly.
What CSS do I now need to add to the page to make the event titles wrap nicely? This is the existing code of the Greasemonkey plugin:
function buildStyle()
{
var st = "div.rb-n, span, nobr { white-space: normal; }";
var dochead = document.getElementsByTagName("head")[0];
var stEl = document.createElement("style");
stEl.setAttribute("type", "text/css");
stEl.innerHTML = st;
dochead.appendChild(stEl);
}
window.addEventListener("load", function(e) {
buildStyle();
}, false);
Here is the Greasemonkey plugin itself: http://userscripts.org/scripts/show/97755 -- It can be seen working correctly if you revert Google calendar to 'classic view', but fails to work for the new view.
UPDATE:
I've saved off an example of a Google calendar, showing two test events:
- http://pastebin.com/wx5Qm8yx - the HTML code for the calendar
- http://pastebin.com/UZnLp2Pj - The existing stylesheet, rename this to style.css