Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

How to delete the url of local startpage, how to make it as a new tab?

  • 1 réponse
  • 0 a ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

To make the local startpage as a new tab I tried autoconfig.js and autoconfig.cfg but I got a error message when I open the broswer and nothing change. To remove the url from the local startpage I browse the reddit but I couldn't find answer, I want that when I open the browser it show my custom and local startpage without the url appearing.

To make the local startpage as a new tab I tried autoconfig.js and autoconfig.cfg but I got a error message when I open the broswer and nothing change. To remove the url from the local startpage I browse the reddit but I couldn't find answer, I want that when I open the browser it show my custom and local startpage without the url appearing.

Toutes les réponses (1)

more options

If you get an error when you use autoconfig, then you can check the Browser Console for more detail.

What code are you using in autoconfig.cfg ?

Note that you need to set general.config.sandbox_enabled to false in autoconfig.js to be able you include JavaScript. You also can no longer import Services.jsm, but have to use a different way.

let Services = globalThis.Services || ChromeUtils.import("resource://gre/modules/Services.jsm").Services;

You can use the autoconfig.cfg file in the Firefox installation folder to initialize (set/lock) preferences and run privileged JavaScript code.

To use Autoconfig, place two files into the Firefox installation directory.

  • on Windows, they go into the same directory where Firefox is installed
  • on macOS, they go into the Contents/Resources directory of the Firefox.app

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:


Content of autoconfig.js:

//start autoconfig.js with a comment line
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);

Content of autoconfig.cfg: // start autoconfig.cfg with a comment line

Modifié le par cor-el

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.