Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章。

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

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

详细了解
Solved 已存档

How to set the New Tab page to a local file? (autoconfig no longer works in v136.0)

Quazer

Since the settings haven't given that option for years, the best way to have a local file as the new tab page was using autoconfig.cfg + autoconfig.js, as described in this thread: https://support.mozilla.org/en-US/questions/1251199 But since the most recent update (v136.0), this stopped working.

The New Tab Override add-on has its own issues with using local files (can only load a .html file, no local CSS/JS, can't give a blank address bar for me to search in), so it doesn't solve the issue either.

This is very important to me, and others have been asking for this feature back for years. It feels awful to have the working solution stop working, in the browser that's supposed to be open and customizable.

Since the settings haven't given that option for years, the best way to have a local file as the new tab page was using autoconfig.cfg + autoconfig.js, as described in this thread: https://support.mozilla.org/en-US/questions/1251199 But since the most recent update (v136.0), this stopped working. The New Tab Override add-on has its own issues with using local files (can only load a .html file, no local CSS/JS, can't give a blank address bar for me to search in), so it doesn't solve the issue either. This is very important to me, and others have been asking for this feature back for years. It feels awful to have the working solution stop working, in the browser that's supposed to be open and customizable.

所有回复 (1)

选择的解决方案

Update: I found this https://support.mozilla.org/en-US/questions/1498059

replacing the whole autoconfig.cfg's content with this one line works:

ChromeUtils.importESModule("resource:///modules/AboutNewTab.sys.mjs").AboutNewTab.newTabURL = "file:///home/razv/StartPage/index.html";

so it wasn't a removal of the whole autoconfig feature, just changes to how it works. mybad

由Quazer于修改