搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to change the default search provider through prefs.fs file?

  • 1 回覆
  • 1 有這個問題
  • 22 次檢視
  • 最近回覆由 cor-el

more options

Hello!

I am making an application in c#. This application have to change the default search provider. I tried to edit the file prefs.js. See it:

user_pref("browser.search.defaultenginename", "Doudol");

user_pref("browser.search.defaulturl", "http://doudol.com/index.php?q={searchTerms}");

But did work. Anybody have Any ideia?

Hello! I am making an application in c#. This application have to change the default search provider. I tried to edit the file prefs.js. See it: user_pref("browser.search.defaultenginename", "Doudol"); user_pref("browser.search.defaulturl", "http://doudol.com/index.php?q={searchTerms}"); But did work. Anybody have Any ideia?

所有回覆 (1)

more options

See:

  • bug 1029148 - store "current search engine" configuration outside of prefs

Please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html