X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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?

Additional System Details

Application

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

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17687 solutions 160003 answers

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>