সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

firefox.cfg no longer overwrite new tab content

  • 1 উত্তর
  • 0 এই সমস্যাটি আছে
  • 54 দেখুন
  • শেষ জবাব দ্বারা 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

সমাধান চয়ন করুন

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;
প্রেক্ষাপটে এই উত্তরটি পড়ুন। 👍 0

All Replies (1)

more options

চয়ন করা সমাধান

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;

Helpful?

একটি প্রশ্ন জিজ্ঞাসা করুন

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