Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

Can't change the default search engine in FF39/40 using mozilla.cfg

  • 9 Antworten
  • 1 hat dieses Problem
  • 3 Aufrufe
  • Letzte Antwort von russjohnson

more options

I had followed the instructions outlined in this archived thread: https://support.mozilla.org/en-US/questions/1034136

But it appears they no longer function as of firefox 39 and 40. How can I change the default search engine for all of my users back to Google in the current version? Is this going to break all the time?

I had followed the instructions outlined in this archived thread: https://support.mozilla.org/en-US/questions/1034136 But it appears they no longer function as of firefox 39 and 40. How can I change the default search engine for all of my users back to Google in the current version? Is this going to break all the time?

Alle Antworten (9)

more options

In what way can you not change the engine? What happens?

Bookmark and use this; Download the Mozilla Search Reset {web link} This add-on is very simple: on installation, it backs up and then resets your search preferences and home page to their default values, and then uninstalls itself. This affects the search bar, URL bar searches, and the home page.

more options

That doesn't help. I'm deploying non-persistent VMs to my staff and using the mozilla.cfg to customize firefox. Using the preferences in the mozilla.cfg is not successfully changing the default search engine from yahoo to google.

The settings below which seem to have worked in ff37 no longer function, per the thread I linked in the initial post:

pref("browser.search.geoSpecificDefaults", false); pref("browser.search.defaultenginename.US", "data:text/plain,browser.search.defaultenginename.US=Google");

more options

Type about:addons<enter> in the address bar to open your Add-ons Manager. Hot key; <Control>(Mac:<Command>)<Shift> A)

In the Add-ons Manager, on the left, select Extensions. Remove yahoo Anything. Now do the same in the computers Programs Folder.

Windows: Start > Control Panel > Uninstall Programs. Mac: Open the "Applications" folder. Linux: Check your user manual.


After the problem is fixed, Bookmark and use this; Download the Mozilla Search Reset {web link} This add-on is very simple: on installation, it backs up and then resets your search preferences and home page to their default values, and then uninstalls itself. This affects the search bar, URL bar searches, and the home page.


I've called the big guys to help you. Good luck.

more options

russ,

If that just broke with Firefox 40, the solution for Firefox 34.0.5 and Firefox 37.0 may not work with the changes to 'search' in Firefox 40+. The default search engines were move out of the Profile folder to program files omni.ja file to keep them from being 'messed with' by malware, which had been happening. But I am not sure how or why that change would impact the mozilla.cfg prefs you are using. 'We' need cor-el to weigh in here to see what his 'take' is.

more options

See the comments in the source code:

What is the setting for these prefs?

  • browser.search.selectedEngine
  • browser.search.defaultenginename
more options

browser.search.defaultenginename is exactly what I'm trying to change, I have it set in mozilla.cfg as the following:

pref("browser.search.defaultenginename","data:text/plain,browser.search.defaultenginename=Google");

But in about:config it still shows Yahoo

browser.search.selectedEngine doesn't appear to exist

more options

It looks like the mozilla.cfg is being overwritten by a prior manual change to the settings.

So I switched to lockPref and it shows the right browser in about:config but the search being used is still wrong, it's just going by whatever I manually set in the options screen even after reload.

more options

Did you try these?

pref("browser.search.defaultenginename","Google");
pref("browser.search.defaultenginename.US","data:text/plain,browser.search.defaultenginename.US=Google");
more options

Yes. No matter what it loads up with whatever I last selected via the gui settings. I've even tried to tell it not to load the geospecific defaults and not to loadfromjars.

It's like something is overriding the mozilla.cfg.