Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to modify Mozilla.cfg to set google as default search engine

  • 10 답장
  • 31 이 문제를 만남
  • 1 보기
  • 최종 답변자: rwc3500

more options

Need some help with adjusting our mozilla.cfg file to change the default search engine from yahoo back to google. The browser.search.defaultenginename within about:config already has the default value of 'google', so justing adding this line to modzilla.cfg doesn't work - 'pref("browser.search.defaultenginename", "google", as its currently the default.

I noticed that if I manually change the search provider (thru the interface), then this value changes from 'default' to 'user set', which retains google as the default search engine. So how do I either set this value as 'user set' within mozilla.cfg, or use some alternative?

thxs

Need some help with adjusting our mozilla.cfg file to change the default search engine from yahoo back to google. The browser.search.defaultenginename within about:config already has the default value of 'google', so justing adding this line to modzilla.cfg doesn't work - 'pref("browser.search.defaultenginename", "google", as its currently the default. I noticed that if I manually change the search provider (thru the interface), then this value changes from 'default' to 'user set', which retains google as the default search engine. So how do I either set this value as 'user set' within mozilla.cfg, or use some alternative? thxs

선택된 해결법

You can revert the search engine change from Google to Yahoo in the Firefox 34.0.5 by toggling browser.search.isUS to false. Note that only 34.0.5 changes the default search engine to Yahoo!.

//
lockPref("browser.search.isUS", false);

See also these prefs:

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (10)

more options

I just have to say to the people at Mozilla that this new search thing just SUCKS! I hate you.

more options

In the address bar, type about:preferences#search<enter>

If you miss being able to switch search engines without going crazy with menus, try this out;

Context Search {web link} Expands the context menu's 'Search for' item into a list of installed search engines, allowing you to choose the engine you want to use for each search.

more options

선택된 해결법

You can revert the search engine change from Google to Yahoo in the Firefox 34.0.5 by toggling browser.search.isUS to false. Note that only 34.0.5 changes the default search engine to Yahoo!.

//
lockPref("browser.search.isUS", false);

See also these prefs:

more options

Noticed with FF v37 that changing 'browser.search.is.US' to false within mozilla.cfg or about:config no longer resets the default search from Yahoo to Google.

Have also tried modifying 'browser.search.defaultenginename.US' within About:config to any search provider, but the preference is not saved. However changing search provider thru the UI will then update about:config.

Question: so how to modify mozilla.cfg in FF v37 to set default search provider to google?

more options

Type about:preferences#search<enter> in the address bar.

Choose your the primary engine.

more options

thanks for the response - however I need to set this preferences for several users (enterprise deployment). I'm looking for an option within mozilla.cfg to set this preference. Previous to FF 37, adding the below lines worked:

pref("browser.search.defaultenginename", "Google"); pref("browser.search.defaultenginename.US", "Google"); pref("browser.search.isUS", false);

With FF 37, the 'browser.search.defaultenginename.US' appears to no longer be functioning as before in previous versions.

more options

This pref may need a special treatment in order to work.

394 // Market-specific search defaults (US market only)
395 pref("browser.search.geoSpecificDefaults", true);
396 pref("browser.search.defaultenginename.US",      "data:text/plain,browser.search.defaultenginename.US=Yahoo");
more options

thanks for the post - so to be clear, the special treatment meaning some code revision?

I tried adding the above string to mozilla.cfg & switching 'Yahoo" to "Google", but it still defaulted back to Yahoo:

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

more options

Does it has effect if you set browser.search.geoSpecificDefaults to false to disable this check?

  • lockPref("browser.search.geoSpecificDefaults", false);

You can check comments in the source code to see how Firefox determines what search engine to use.

글쓴이 cor-el 수정일시

more options

Yes sir - changing the value of 'browser.search.geoSpecificDefaults' to false did resolve the issue - Google is now set as the default search provider:

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

Thank you!