Posledné odpovede k Blank new tab when using file:/// for homepage with newtabhomepage addonhttps://support.mozilla.org/sk/questions/14013822023-01-06T17:54:55-08:00Ok, tested here on a spare PC and it works perfectly.
thanks for your help.
2023-01-06T17:54:55-08:00citizen1138xhttps://support.mozilla.org/sk/questions/1401382#answer-1558082<p>Ok, tested here on a spare PC and it works perfectly.
thanks for your help.
</p>From am earlier post...
3. Create file autoconfig.cfg in C:\Program Files\Mozilla Firefox\defaults\p2023-01-06T16:55:08-08:00citizen1138xhttps://support.mozilla.org/sk/questions/1401382#answer-1558076<p>From am earlier post...
</p><p>3. Create file autoconfig.cfg in C:\Program Files\Mozilla Firefox\defaults\pref
4. Create file autoconfig.js in C:\Program Files\Mozilla Firefox
</p><p>Whoa! Wrong way around. No wonder.
I've set up a PC here to mirror his so I'll test from here.
Will get back to you.
</p>You can check the Browser Console for more detail about what is wrong with the autoconfig.cfg file.
2023-01-06T16:39:45-08:00cor-elhttps://support.mozilla.org/sk/questions/1401382#answer-1558073<p>You can check the Browser Console for more detail about what is wrong with the autoconfig.cfg file.
The autoconfig.cfg file needs to be in the same location as the Firefox.exe executable.
</p><p>You can open open the file in a Firefox tab to get the correct file:/// URI.
Note that this is one line to remind that you need to dissble the sandbox via autoconfig.js
// autoconfig.cfg start with a comment line; autoconfig.js =&gt; pref("general.config.sandbox_enabled", false);
</p>
<hr>
<p>To use Autoconfig, place two files into the Firefox installation directory.
</p>
<ul><li>on Windows, they go into the same directory where Firefox is installed
</li><li>on macOS, they go into the Contents/Resources directory of the Firefox.app
</li></ul>
<p>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 <u>autoconfig.cfg</u> file is placed at the top level of the Firefox directory.
</p>
<ul><li>autoconfig.cfg and autoconfig.js need to start with a comment line (//)
</li><li>autoconfig.js needs to use Unix line endings (LF instead of CR/LF)
</li></ul>I asked the person to place the two files as mentioned above.
He says he has placed them correctly (2023-01-06T13:29:44-08:00citizen1138xhttps://support.mozilla.org/sk/questions/1401382#answer-1558058<p>I asked the person to place the two files as mentioned above.
He says he has placed them correctly (I asked him to confirm twice) and he gets this error...
</p>Yes, using autoconfig.js and autoconfig.cfg is sufficient.
/questions/1340100 Setting New Tab home 2023-01-04T12:42:35-08:00cor-elhttps://support.mozilla.org/sk/questions/1401382#answer-1557671<p>Yes, using autoconfig.js and autoconfig.cfg is sufficient.
</p>
<ul><li><a href="/questions/1340100" rel="nofollow">/questions/1340100</a> Setting New Tab home page
</li><li><a href="/questions/1283835" rel="nofollow">/questions/1283835</a> firefox.cfg no longer overwrite new tab content
</li></ul>Ok, now I'm confused.
So I don't need any extension whatsoever?
I can use autoconfig and get the re2023-01-04T12:01:42-08:00citizen1138xhttps://support.mozilla.org/sk/questions/1401382#answer-1557663<p>Ok, now I'm confused.
</p><p>So I don't need any extension whatsoever?
</p><p>I can use autoconfig and get the result I want with the local page.
Am I understanding correctly?
</p>If you want to go for the autoconfig.cfg option then you do not need the NTO extension.
NTO is suite2023-01-04T11:56:46-08:00cor-elhttps://support.mozilla.org/sk/questions/1401382#answer-1557660<p>If you want to go for the autoconfig.cfg option then you do not need the NTO extension.
NTO is suited for setting the new tab page to an internet page, but is less suited for a local page as it stores a copy of the HTML page.
The home page you can set to any page via Settings and about:config, but for the new tab page there is only a blank page or the Firefox Home page where you can hide/show various content.
</p>Ok see if I got this right;
1. Remove newtabhomepage
2. Install newtaboverride
3. Create file autoco2023-01-04T09:37:24-08:00citizen1138xhttps://support.mozilla.org/sk/questions/1401382#answer-1557649<p>Ok see if I got this right;
</p><p>1. Remove newtabhomepage
2. Install newtaboverride
3. Create file autoconfig.cfg in C:\Program Files\Mozilla Firefox\defaults\pref
4. Create file autoconfig.js in C:\Program Files\Mozilla Firefox
5. Set the AboutNewTab.newTabURL = "&lt;path to file&gt;"; in autoconfig.cfg where &lt;path to file&gt; is the URL currently defined in Firefox as the homepage.
</p><p>Also, I notice that in your example you say file://.
The URL in Firefox has file:/// (three slashes). What is the extra slash for?
</p><p>I will let you know how it goes. thanks
</p>You can't use an extension like NTO to set the new tab page to a local page, you would have to use a2023-01-04T08:11:31-08:00cor-elhttps://support.mozilla.org/sk/questions/1401382#answer-1557634<p>You can't use an extension like NTO to set the new tab page to a local page, you would have to use an <a href="/kb/customizing-firefox-using-autoconfig" rel="nofollow">autoconfig.cfg</a> file.
NTO can store a copy of a local file in its extension data storage.
<a href="https://addons.mozilla.org/firefox/addon/new-tab-override/" rel="nofollow">https://addons.mozilla.org/firefox/addon/new-tab-override/</a>
</p>
<ul><li>Store a local HTML file in the extension and use it for new tab content
</li></ul>
<hr>
<pre>// autoconfig.cfg start with a comment line; autoconfig.js =&gt; pref("general.config.sandbox_enabled", false);
try {
Components.utils.import("resource:///modules/AboutNewTab.jsm");
AboutNewTab.newTabURL = "file://xxx";
} catch(e){Components.utils.reportError(e);} // Browser Console</pre><br>
<p>The content of autoconfig.js:
</p><pre>//
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);
</pre>