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

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 1 回覆
  • 1 有這個問題
  • 290 次檢視
  • 最近回覆由 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.

被選擇的解決方法

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

從原來的回覆中察看解決方案 👍 0

所有回覆 (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 於 修改