X
點擊此處開啟此網站的行動版。

技術支援討論區

local html page for new tab and homepage not working

Jay
已張貼

FF needs to release an update so I can update (for security) to it that allows me to load html lopcal pages in my tab and home page thats all! i dont care about any walkaround! no addons will be acceptable an update is required! i am using an old dev version just to use these 2 important features! i have to use chrome as that browser is more updated but chrome is also not allowing what i need! :/

FF needs to release an update so I can update (for security) to it that allows me to load html lopcal pages in my tab and home page thats all! i dont care about any walkaround! no addons will be acceptable an update is required! i am using an old dev version just to use these 2 important features! i have to use chrome as that browser is more updated but chrome is also not allowing what i need! :/
引用

額外的系統細節

已安裝的外掛程式

  • Shockwave Flash 32.0 r0

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

更多資訊

提出問題者

  • local * (ps you need an edit button)!
* local * (ps you need an edit button)!
這篇文章有幫助嗎?
引用
cor-el
  • Top 10 Contributor
  • Moderator
17341 個解決方法 156765 個答案

Extension can't set a local page as the new tab page, but you can possibly do this via an autoconfig file.

See this thread:


// autoconfig.cfg needs to start with a comment line var newTabURL = "file:///<local-file-path>"; aboutNewTabService = Components.classes["@mozilla.org/browser/aboutnewtab-service;1"].getService(Components.interfaces.nsIAboutNewTabService); aboutNewTabService.newTabURL = newTabURL;

// autoconfig.js start with a comment line and uses Unix line endings (LF and not CR/LF)
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);

To use Autoconfig, place two files into the Firefox directory where firefox.exe is located.

  • (64-bit Firefox) "C:\Program Files\Mozilla Firefox\"
  • (32-bit Firefox) "C:\Program Files (x86)\Mozilla Firefox\"

The autoconfig.js file that specifies to use autoconfig.cfg is placed into the "defaults\pref" directory where the channel-prefs.js file is located.

The autoconfig.cfg file is placed at the top level of the Firefox directory.

  • autoconfig.cfg and autoconfig.js need to start with a comment line (//)
  • autoconfig.js needs to use Unix line endings (LF instead of CR/LF)

See also:

Extension can't set a local page as the new tab page, but you can possibly do this via an autoconfig file. *https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig See this thread: *[/questions/1251199] How do I set my local HTML page as a homepage? ---- <nowiki>// autoconfig.cfg needs to start with a comment line var newTabURL = "file:///<local-file-path>"; aboutNewTabService = Components.classes["@mozilla.org/browser/aboutnewtab-service;1"].getService(Components.interfaces.nsIAboutNewTabService); aboutNewTabService.newTabURL = newTabURL;</nowiki> <pre><nowiki>// autoconfig.js start with a comment line and uses Unix line endings (LF and not CR/LF) pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false);</nowiki></pre> ---- To use Autoconfig, place two files into the Firefox directory where firefox.exe is located. *(64-bit Firefox) "C:\Program Files\Mozilla Firefox\" *(32-bit Firefox) "C:\Program Files (x86)\Mozilla Firefox\" The <u>autoconfig.js</u> file that specifies to use autoconfig.cfg is placed into the "defaults\pref" directory where the channel-prefs.js file is located. The autoconfig.cfg file is placed at the top level of the Firefox directory. *autoconfig.cfg and autoconfig.js need to start with a comment line (//) *autoconfig.js needs to use Unix line endings (LF instead of CR/LF) See also: *https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig
這篇文章有幫助嗎?
引用

提出問題者

I really want it to work out the box like it should like it used to like it does on my current dev ff version im on now! just i want the newest 1 so i get updates so fixit! i dont want addons or walk arounds of any kind! the responsabilty for security is down to me to toggle a button saying i accept responsilibity! or whatever simples logic fix it!

I really want it to work out the box like it should like it used to like it does on my current dev ff version im on now! just i want the newest 1 so i get updates so fixit! i dont want addons or walk arounds of any kind! the responsabilty for security is down to me to toggle a button saying i accept responsilibity! or whatever simples logic fix it!
這篇文章有幫助嗎?
引用
cor-el
  • Top 10 Contributor
  • Moderator
17341 個解決方法 156765 個答案

This isn't directly supported, only http:// and https:// is supported and not about: pages and file:// URIs. I think that New Tab Override can workaround this by storing a copy of the local file in its own storage and use that instead of opening the file directly.

store a local HTML file in the extension's storage and use the content as new tab content

This isn't directly supported, only http:// and https:// is supported and not about: pages and file:// URIs. I think that New Tab Override can workaround this by storing a copy of the local file in its own storage and use that instead of opening the file directly. *https://addons.mozilla.org/firefox/addon/new-tab-override/ ''store a local HTML file in the extension's storage and use the content as new tab content''
這篇文章有幫助嗎?
引用

提出問題者

overide worked once but no more! again ff started well and in name of security it prevents things like overide from working so ff are bad at what they do if they really cared about security they would prompt for password when chage of setting is detected a password setup when you install ff to start with there you go thats how easy security is!

overide worked once but no more! again ff started well and in name of security it prevents things like overide from working so ff are bad at what they do if they really cared about security they would prompt for password when chage of setting is detected a password setup when you install ff to start with there you go thats how easy security is!
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題