How do I customize the file not found page in Firefox 114? I have tried the methods I can find by searching, but can't get any of them to work.
I'm trying to customize or ideally replace the error page for file:// files. I doesn't have to be just for file:// protocol. this is for an offline personal project that is not using a server.
I have tried:
- Setting
browser.xul.error_pages.enabledtotrue - Setting
browser.xul.error_pages.404to a path containing my404.html:
<html> <head> </head> <body> <p>This is my error page</p> </body> </html>
- Adding a
certerror.xhtmlpage toC:\Program Files\Mozilla Firefox\browser\content\browser\. I didn't think this would work, but it was worth a try. - Editing the
user.jsfile to include:
user_pref("browser.xul.error_pages.enabled", true);
user_pref("browser.xul.error_pages.404", "file:///C:/Users/Greg/AppData/Roaming/Mozilla/Firefox/Profiles/o1e6yv2w.default-release/errorpages/404.html");
Still no luck.