X
Tap here to go to the mobile version of the site.

Support Forum

How can I get Firfox to open webcal links (webcal://website.org/ical/appointments.ics) with Google calendar?

Posted

How can I get Firfox to open webcal links (webcal://website.org/ical/appointments.ics) with Google calendar?

How can I get Firfox to open webcal links (webcal://website.org/ical/appointments.ics) with Google calendar?

Chosen solution

Some sites will trigger a bar asking if you want them to handle particular content types, but either Google Calendar doesn't do that or I told Firefox to ignore it so now I can't get it back.

To add a web-based protocol handler yourself, you can run a little line of script in the Web Console. The address will vary, so this is not a general template, it is based on posts by users on various websites over the past 8 years.

Important: Does not work in private browsing windows.

(1) Select and copy the following long line of script:

window.navigator.registerProtocolHandler("webcal", "https://calendar.google.com/calendar/render?cid=%s", "Google Calendar");

(What this command does: Web-based Protocol Handlers)

(2) Open Google Calendar

(3) Open Firefox's Web Console in the lower part of the tab using either:

  • Ctrl+Shift+k (Mac: Command+Alt+k)
  • (menu bar) Tools > Web Developer > Web Console
  • menu button > Web Developer > Web Console

(4) In the command line area at the bottom of the console, paste the script and press Enter/Return to execute it. (If this is your first time, Firefox should warn you not to run scripts from strangers that might be intended to steal your data.)

(5) Firefox should display a bar asking you to confirm that you want to add Google Calendar as an application for webcal files (see attached screenshot). Click Add Application.

You're done here. Now click a link to test. Firefox may display a box with choices for how to handle the webcal: link or it may do something automatically. To change what Firefox does, you can go to the Preferences/Options page, scroll down to the Applications area, find webcal, and modify the behavior from the drop-down on the right side. (Second screenshot)

Success?

Read this answer in context 1

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

More Information

WestEnd 60 solutions 5387 answers

Is it suppose to open from their site and connect to your calendar?

Is it suppose to open from their site and connect to your calendar?

Question owner

WestEnd said

Is it suppose to open from their site and connect to your calendar?

That's what I want it to do. And that's what it could do, if everything is set up correctly.

''WestEnd [[#answer-1053696|said]]'' <blockquote> Is it suppose to open from their site and connect to your calendar? </blockquote> That's what I want it to do. And that's what it could do, if everything is set up correctly.
jscher2000
  • Top 10 Contributor
8757 solutions 71653 answers

Chosen Solution

Some sites will trigger a bar asking if you want them to handle particular content types, but either Google Calendar doesn't do that or I told Firefox to ignore it so now I can't get it back.

To add a web-based protocol handler yourself, you can run a little line of script in the Web Console. The address will vary, so this is not a general template, it is based on posts by users on various websites over the past 8 years.

Important: Does not work in private browsing windows.

(1) Select and copy the following long line of script:

window.navigator.registerProtocolHandler("webcal", "https://calendar.google.com/calendar/render?cid=%s", "Google Calendar");

(What this command does: Web-based Protocol Handlers)

(2) Open Google Calendar

(3) Open Firefox's Web Console in the lower part of the tab using either:

  • Ctrl+Shift+k (Mac: Command+Alt+k)
  • (menu bar) Tools > Web Developer > Web Console
  • menu button > Web Developer > Web Console

(4) In the command line area at the bottom of the console, paste the script and press Enter/Return to execute it. (If this is your first time, Firefox should warn you not to run scripts from strangers that might be intended to steal your data.)

(5) Firefox should display a bar asking you to confirm that you want to add Google Calendar as an application for webcal files (see attached screenshot). Click Add Application.

You're done here. Now click a link to test. Firefox may display a box with choices for how to handle the webcal: link or it may do something automatically. To change what Firefox does, you can go to the Preferences/Options page, scroll down to the Applications area, find webcal, and modify the behavior from the drop-down on the right side. (Second screenshot)

Success?

Some sites will trigger a bar asking if you want them to handle particular content types, but either Google Calendar doesn't do that or I told Firefox to ignore it so now I can't get it back. To add a web-based protocol handler yourself, you can run a little line of script in the Web Console. The address will vary, so this is not a general template, it is based on posts by users on various websites over the past 8 years. ''Important: Does not work in private browsing windows.'' (1) Select and copy the following long line of script: <code>window.navigator.registerProtocolHandler("webcal", "https://calendar.google.com/calendar/render?cid=%s", "Google Calendar");</code> (What this command does: [https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler/Web-based_protocol_handlers#Registering Web-based Protocol Handlers]) (2) Open Google Calendar (3) Open Firefox's Web Console in the lower part of the tab using either: * Ctrl+Shift+k (Mac: Command+Alt+k) * (menu bar) Tools > Web Developer > Web Console * menu button > Web Developer > Web Console (4) In the command line area at the bottom of the console, paste the script and press Enter/Return to execute it. (If this is your first time, Firefox should warn you not to run scripts from strangers that might be intended to steal your data.) (5) Firefox should display a bar asking you to confirm that you want to add Google Calendar as an application for webcal files (see attached screenshot). Click Add Application. You're done here. Now click a link to test. Firefox may display a box with choices for how to handle the webcal: link or it may do something automatically. To change what Firefox does, you can go to the Preferences/Options page, scroll down to the Applications area, find webcal, and modify the behavior from the drop-down on the right side. (Second screenshot) Success?

Question owner

jscher2000, Success! Thank you for your easy-to-follow reply which provides step-by-step instructions to get the problem solved.

Merry Christmas.

jscher2000, Success! Thank you for your easy-to-follow reply which provides step-by-step instructions to get the problem solved. Merry Christmas.
jscher2000
  • Top 10 Contributor
8757 solutions 71653 answers

Hi badaboom, thank you for reporting back and Merry Christmas to you, too.

Hi badaboom, thank you for reporting back and Merry Christmas to you, too.