Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Use custom new tab page as home page

  • 3 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi WestEnd

more options

Hello,

I've written an extension that overrides the new tab page (chrome_url_override 'newtab' https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/chrome_url_overrides), and I would like to have this page not only be the new tab page in my browser, but also the homepage that appears when I first open Firefox.

I've tried using the custom URL option in the preferences for 'New windows and tabs', and clicking 'Use current page' for, so that the URL is that of my extensions new tab page (moz-extension://f897059f-ffba-8d43-9569-8d488fcaeb19/pages/newtab.html in my case), however this does not work, when first opened, Firefox displays a blank page with no console errors or anything.

Is there any way to set the home page to my custom new page, or any page that I can provide with my extension? It needs to have access to the bookmarks via the web extension API, otherwise I would just use a custom local URL.

I'd appreciate any help on this.

Hello, I've written an extension that overrides the new tab page (chrome_url_override 'newtab' https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/chrome_url_overrides), and I would like to have this page not only be the new tab page in my browser, but also the homepage that appears when I first open Firefox. I've tried using the custom URL option in the preferences for 'New windows and tabs', and clicking 'Use current page' for, so that the URL is that of my extensions new tab page (moz-extension://f897059f-ffba-8d43-9569-8d488fcaeb19/pages/newtab.html in my case), however this does not work, when first opened, Firefox displays a blank page with no console errors or anything. Is there any way to set the home page to my custom new page, or any page that I can provide with my extension? It needs to have access to the bookmarks via the web extension API, otherwise I would just use a custom local URL. I'd appreciate any help on this.

Tất cả các câu trả lời (3)

more options

I just set my homepage to Google and it works without problems.

more options

I appreciate your reply, but that's not my problem, as I wrote at the end I can set the homepage to a regular URL just fine, but I want it to open an extension page, with access to the web extension API.

To add to it, it seems that this actually works for me on windows 10, the issue with the blank page is only on mac.

more options

Then something on your mac probably the security software is causing the blank page then. As you said it works fine on Windows 10 then that means the problem is the Mac.