使用 Google 应用程序脚本向 Google 日历添加边栏?

Add a sidebar to Google Calendar with Google App Script?

我想使用 Google App Script 将集成添加到我团队的日历中。最好将新菜单集成到日历的 UI 中。

理想情况下可能是文档、表格和表格:

 // Display a sidebar with custom HtmlService content.
 var htmlOutput = HtmlService
     .createHtmlOutput('<p>A change of speed, a change of style...</p>')
     .setTitle('My add-on');
 SpreadsheetApp.getUi().showSidebar(htmlOutput);

 // Display a sidebar with custom UiApp content.
 var uiInstance = UiApp.createApplication()
     .setTitle('My add-on');
 uiInstance.add(uiInstance.createLabel('The photograph on the dashboard taken years ago...'));
 SpreadsheetApp.getUi().showSidebar(uiInstance);

来自 https://developers.google.com/apps-script/reference/base/ui#showsidebaruserinterface

但是,CalendarApp 似乎没有 .getUi() 方法可以使用。

是否有其他方法可以将边栏附加到 Google CalendarApp?

遗憾的是,目前无法使用 Google Apps 脚本。但是,您可以通过编写 Chrome 扩展来修改日历 UI,该扩展将自定义 UI 元素注入日历页面的 DOM 对象。