X
點擊此處開啟此網站的行動版。

技術支援討論區

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

已張貼

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?

額外的系統細節

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

更多資訊

cor-el
  • Top 10 Contributor
  • Moderator
17540 個解決方法 158595 個答案

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

See: *[https://bugzilla.mozilla.org/show_bug.cgi?id=1029148 bug 1029148] - store "current search engine" configuration outside of prefs <i>Please do not comment in bug reports<br>https://bugzilla.mozilla.org/page.cgi?id=etiquette.html</i>