𝕽𝖆𝖉𝖎𝖈𝖆𝖑 𝕽𝖊𝖇𝖊𝖑

“𝖘𝖊𝖛𝖊𝖓𝖙𝖞-𝖙𝖜𝖔 𝖛𝖎𝖗𝖌𝖎𝖓𝖘, 𝖈𝖆𝖓 𝖓𝖊𝖛𝖊𝖗 𝖘𝖙𝖔𝖕 𝖆 𝖜𝖆𝖗, 𝖇𝖚𝖙 𝖆 𝖍𝖚𝖓𝖉𝖗𝖊𝖉-𝖙𝖍𝖔𝖚𝖘𝖆𝖓𝖉 𝖍𝖔𝖔𝖐𝖊𝖗𝖘, 𝖈𝖔𝖚𝖑𝖉 𝖇𝖊𝖆𝖙 𝖙𝖍𝖊 𝖒𝖆𝖗𝖎𝖓𝖊 𝖈𝖔𝖗𝖊” - 𝖓𝖔𝖋𝖝

  • 0 Posts
  • 2 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2025

help-circle
  • The preference goes in the “user.js” file inside the profile directory, should be found in about:support by searching for the Profile Directory/Folder. It’s probably something like:

    ~/.librewolf/< random-string >.default/

    You need to create/edit the user.js file, here’s the command:

    nano ~/.librewolf/<your-profile>/user.js

    Then add the line:

    user_pref(“browser.newtab.url”, “file:///home/username/path/to/page.html”);

    After this, save and restart the browser. There’s a chance this just won’t work as browser.newtab.url was removed ~ FireFox 40. It was replaced with an extension-based API, so ya, this might not work in modern LibreWolf… But it’s worth a try. Otherwise, an extension like New Tab Override should let you set a file:// path for new tabs. It hooks into the browser.newtab API that replaced these older preferences, but I know you haven’t any much luck either way.


  • From my understanding after looking into this, you should only need to point the new tab URL to your local file using the file:// protocol via:

    user_pref(“browser.newtab.url”, “file:///home/username/path/to/page.html”);

    Yet, any CSS, JavaScript, and images must be on your local disk as well and referenced using the absolute paths or the relative paths from the HTML file’s location. If you still run into issues following these steps, it’s probably the Content Security Policy blocking the scripts or external resources of your local HTML file. Before setting it as the permanent new tab, try testing the file manually first with:

    file:///home/youruser/path/to/page.html

    Also, be sure all the styles and scripts load correctly, then apply the config method resulting in a successful test.