LoginSignup
4
5

More than 5 years have passed since last update.

Chrome のプロトコルハンドラについて

Posted at

Google Calendar を Chrome for Mac (43.0.2357.81) で開いたときにプロトコルハンドラというものがあることに気がついた。
Gyazo

設定は chrome://settings/handlers

Gyazo

Google Calendar の html を見ると、

<script type="text/javascript">if(navigator&&navigator.registerProtocolHandler){navigator.registerProtocolHandler('webcal',"https://www.google.com/calendar/render?cid\x3d%s","Google Calendar");}</script>

webcal ハンドラで google calendar が登録されている状態で、ためしに以下のカレンダー(日本の休日) にアクセスすると、
webcal://www.google.com/calendar/ical/japanese__ja%40holiday.calendar.google.com/public/basic.ics

カレンダーを追加するかどうかのダイアログが出る。
Gyazo

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5