Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

firefox.cfg no longer overwrite new tab content

  • 1 odgovor
  • 0 ima ovaj problem
  • 55 prikaza
  • Posljednji odgovor od shdowmyst

more options

This code in mozilla.cfg used to overwrite new tab, but as of latest firefox 136.0b1 no longer works. Any way to fix this? There error in Browser Console.

// mozilla.cfg needs to start with a comment line var {classes:Cc,interfaces:Ci,utils:Cu} = Components;

/* set new tab page */ try {

 Cu.import("resource:///modules/AboutNewTab.jsm");
 var newTabURL = "file:///D:/Documents/images/home.html";
 AboutNewTab.newTabURL = newTabURL;

} catch(e){Cu.reportError(e);} // report errors in the Browser Console

This code in mozilla.cfg used to overwrite new tab, but as of latest firefox 136.0b1 no longer works. Any way to fix this? There error in Browser Console. // mozilla.cfg needs to start with a comment line var {classes:Cc,interfaces:Ci,utils:Cu} = Components; /* set new tab page */ try { Cu.import("resource:///modules/AboutNewTab.jsm"); var newTabURL = "file:///D:/Documents/images/home.html"; AboutNewTab.newTabURL = newTabURL; } catch(e){Cu.reportError(e);} // report errors in the Browser Console

Izabrano rješenje

Found the solution:

// mozilla.cfg needs to start with a comment line ChromeUtils.defineESModuleGetters(this, {AboutNewTab: "resource:///modules/AboutNewTab.sys.mjs",});

 var newTabURL = "file:///D:/Documents/images/home.html";
 AboutNewTab.newTabURL = newTabURL;
Pročitaj ovaj odgovor u kontekstu 👍 0

Svi odgovori (1)

more options

Odabrano rješenje

Found the solution:

// mozilla.cfg needs to start with a comment line ChromeUtils.defineESModuleGetters(this, {AboutNewTab: "resource:///modules/AboutNewTab.sys.mjs",});

 var newTabURL = "file:///D:/Documents/images/home.html";
 AboutNewTab.newTabURL = newTabURL;

Korisno?

Postavi pitanje

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.