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

搜索 | 用户支持

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

详细了解

Access to local files via URL is no longer possible

more options

As of Firefox 57, a replacement add-on for newTab-override is telling me "Access to local files via URL is no longer possible for extensions." It goes on to say something about Please consider using the „local file“ option or a local web server, for example via MAMP or XAMPP.

For my personal home page I have a local, handwritten piece of basic html that I use as file:///home/me/home.htm Is it going to be possible to feed that to these new Firefox extensions? Fortunately I can still set it as the home page, just not the page that comes up on a new tab.

As of Firefox 57, a replacement add-on for newTab-override is telling me "Access to local files via URL is no longer possible for extensions." It goes on to say something about Please consider using the „local file“ option or a local web server, for example via MAMP or XAMPP. For my personal home page I have a local, handwritten piece of basic html that I use as file:///home/me/home.htm Is it going to be possible to feed that to these new Firefox extensions? Fortunately I can still set it as the home page, just not the page that comes up on a new tab.

所有回复 (3)

more options

The latest versions of New Tab Override have an import feature that allows you to import your current HTML file to the extension's local storage. If you modify the file often, this won't be very convenient, but if it remains the same for long periods of time, this probably will work for you. Firefox blocks some features of local pages imported this way, such as inline image links to local files, or use of local CSS and JS files.

To try this out, open the Add-ons page. Either:

  • Ctrl+Shift+a (Mac: Command+Shift+a)
  • "3-bar" menu button (or Tools menu) > Add-ons
  • type or paste about:addons in the address bar and press Enter/Return

In the left column of the Add-ons page, click Extensions. Then find New Tab Override on the right side and click its Options button. As shown in the attached screenshot, changing the first setting to local file shows a button you can use to import your page.

I didn't test it myself. Does it work for you?

more options

Uploading the personal home page as an extension per your instruction works to a point. Because no true javascript enable/disable exists short of the preference in about:config, I've added the following to my personal home page: ( < replaced with [ so that it doesn't actually run as html commands [script> document.write("[h2>[font color=\"red\">JAVASCRIPT IS ON![/font>[/h2>") [/script> [noscript>[/noscript> It works fine except when used by newtab override.

由fuffberry于修改

more options

Yes, that is a known limitation, that "in-line script" (which could mean any script in the document) is ignored. The author indicated that is a limitation of the current design of Firefox.