为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I open Google Docs files in Firefox?

more options

When I try to open a Google Docs file from my Google Drive folder on my Windows 10 computer, it opens in Firefox in a new tab but it shows:

{"url": "https://docs.google.com/open?id=xxxxxx", "doc_id": "xxxxx", "email": "xxxx@gmail.com"}

How do I get it to show the actual Google sheets instead?

Here is the Google Drive file: https://i.imgur.com/MOtvRAn.png

After double-clicking, it opens in firefox like this: https://i.imgur.com/jKRlypw.png

How can I view the contents of the Google Docs file?

When I try to open a Google Docs file from my Google Drive folder on my Windows 10 computer, it opens in Firefox in a new tab but it shows: {"url": "https://docs.google.com/open?id=xxxxxx", "doc_id": "xxxxx", "email": "xxxx@gmail.com"} How do I get it to show the actual Google sheets instead? Here is the Google Drive file: https://i.imgur.com/MOtvRAn.png After double-clicking, it opens in firefox like this: https://i.imgur.com/jKRlypw.png How can I view the contents of the Google Docs file?

所有回复 (7)

more options

That looks like an internet shortcut file that would open the link in the default browser like other internet shortcuts if you double-click this shortcut. Not sure about the gsheet file extension.

If that isn't working for some reason then paste the url value (https://docs.google.com/...) in the Firefox location bar.

由cor-el于修改

more options

Hmm, I've never heard of a .gsheet file.

Do you have a Google Drive program installed on your system that normally would turns that shortcut information back into a valid URL? Or would that be Google Chrome?

In Firefox, where the .gsheet file contents are displayed, if you select the URL starting with https://docs.google.com/ up to but not including the quotation mark, then right-click it, and choose Open Link in New Tab, does it properly link to the sheet in Google Drive?

more options

cor-el said

That looks like an internet shortcut file that would open the link in the default browser like other internet shortcuts if you double-click this shortcut. Not sure about the gsheet file extension. If that isn't working for some reason then paste the url value (https://docs.google.com/...) in the Firefox location bar.

I understand I can simply copy and paste the link, but how can I double click and open with Firefox to have to automatically open?

more options

That gsheet link is probably a leftover from the past (2016) when you still had the Google Desktop application that would open the linked file in the default browser. As Google discontinued this application you will have to extract the link and paste the link in the location/address bar of a browser to access the file like posted above.

See also:

more options

techcrium said

I understand I can simply copy and paste the link, but how can I double click and open with Firefox to have to automatically open?

An add-on or userscript could detect that a .gsheet file loaded, find the link, and navigate the tab to the linked page. For example, here's a user script that should run in Tampermonkey, Violentmonkey, or Greasemonkey (only tested in Violentmonkey):

https://greasyfork.org/en/scripts/397217-load-gsheet-link-from-local-file

I downloaded this file for testing: https://resources.oreilly.com/examples/0636920048503/raw/11f284105fdb36ec9b75d5cfcf9a115bf0171abe/Google%20Apps%20Script%20for%20Developers%20-%20Working%20Files/Chapter%201/ideData.gsheet

more options

I've been syncing my Google Drive to my 2019 MacBook Pro (macOS Catalina version 10.15.4 using Backup and Sync from Google. Up until this morning, I've been able to navigate to a Google Docs file on my machine via a Google Drive folder that's locally synced in Finder on my machine, double-click on it, and have it open in Firefox. No add-ons necessary. Today, it suddenly seemed to stop working. In my attempt to troubleshoot I checked my default Finder settings for Google Docs files (i.e. all files ending in .gdocs) and found that they were set to be opened with Backup and Sync Sync, which I thought was weird. I thought, "duh, these files are supposed to be opened by my browser," so I set the default behavior to "Open with" Firefox. To my surprise, Firefox opens a browser window, but it's not the Google Doc—it's exactly the error mentioned by the OP.

Any ideas why this might've worked in the past but no longer does, and any suggestions for a non-addon solution?

more options

ITH said

To my surprise, Firefox opens a browser window, but it's not the Google Doc—it's exactly the error mentioned by the OP. Any ideas why this might've worked in the past but no longer does, and any suggestions for a non-addon solution?

I don't think it's an error, I think it's the contents of the file. Something is missing that previously read the URL in the file and loaded it. But I couldn't tell what that was.