Изменить поисковую систему по умолчанию для адресной строки Firefox

21223
A voice on the wind

Мне нравится возможность просто вводить что-то в адресную строку Firefox и выполнять поиск в Google. Но мне было интересно, есть ли какой-нибудь способ настроить, какой поисковик использует Firefox?

15
Пользователя, задавшего этот вопрос, в последний раз видели здесь 5 апреля 2011 года в 7:31 ... Можем ли мы сказать, что это его вопрос "наезд"? : - / climenole 9 лет назад 0

6 ответов на вопрос

20
BloodPhilia

В FireFox, в вашей адресной строке введите

about:config 

и нажмите Enter. Теперь найдите запись с названием « keyword.URL», это ключ конфигурации, который содержит URL-адрес для поиска при поиске в адресной строке. Если дважды щелкнуть запись, вы можете изменить значение.

enter image description here

По умолчанию это должно быть установлено в Google, который использует этот URL-адрес запроса: http://www.google.com/search?&q=возможно, это немного по-другому, но это должно быть похоже.

Некоторые примеры URL поисковых запросов:

Google: Yahoo: спросить: Bing:http://www.google.com/search?&q=
http://search.yahoo.com/search?p=
http://www.ask.com/web?q=
http://www.bing.com/search?q=1

Если вам нужна другая поисковая система, и вы не знаете URL запроса, сделайте следующее:

  1. Перейдите к предпочитаемой поисковой системе (например, Google)
  2. Выполните поиск по легко узнаваемому ключевому слову, например, "HELLOWORLD"
  3. В вашей адресной строке должен быть URL, содержащий ваше ключевое слово. Для Google это было бы что-то вродеhttp://www.google.nl/search?q=HELLOWORLD&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:nl:official&client=firefox-a
  4. Теперь просто удалите все после " =", которое находится перед выбранным ключевым словом. Ваш запрос URL для Google будет:http://www.google.nl/search?q=

    enter image description here

В соответствующей заметке вы можете использовать надстройку FireFox [DictionarySearch] (https://addons.mozilla.org/en-US/firefox/addon/dictionarysearch/), чтобы настроить несколько различных поисков, доступных для выделение текста на веб-странице, щелчок правой кнопкой мыши и выбор одного из них во всплывающем меню. У меня есть несколько таких сайтов, таких как Amazon, Netflix и Wikipedia, которые я настроил, используя более или менее ту же методику, описанную здесь для определения используемого URL. Я очень рекомендую это. martineau 11 лет назад 0
Перед тем, как сделать это, чтобы сохранить переключение между вкладками, сделайте следующее: CTRL + T, который откроет вам новую вкладку, затем перетащите эту новую вкладку за пределы окна браузера. Теперь вы можете сделать это бок о бок adolf garlic 11 лет назад 0
НАСТОЯЩЕЕ РЕШЕНИЕ НЕ Дольше работает в FIREFOX Ashildr 10 лет назад 6
Все, что вы выберете, используя раскрывающееся меню слева в текстовом поле поиска, такое как «DuckDuckGo», становится по умолчанию в адресной строке и на домашней странице about :. Внутренне это изменяет browser.search.defaultenginename и browser.search.selectedEngine. maxpolk 9 лет назад 0
6
Steven Penny

Starting with version 34.0.5, this can be changed by going to Options Search

options

It can also be changed programmatically, although this is more difficult. The search engine setting is now kept in the Profile Folder, in a file called search-metadata.json. Example

{ "[global]": { "current": "Google", "hash": "fGiy1O53LgQtereW/4qUSlwFfagTNKGghURIbAFw8wY=" } } 

The hash can be created by using this example Bash script

profile=default provider=Google disclaimer="By modifying this file, I agree that I am doing so only within \ Firefox itself, using official, user-driven search engine selection processes, \ and in a way which does not circumvent user consent. I acknowledge that any \ attempt to change this file from outside of Firefox is a malicious act, and \ will be responded to accordingly." printf "$profile$provider$disclaimer" | openssl sha256 -binary | base64 

This change was discussed at Bugzilla and can be found in the source code.

3
Rev

I had this problem when the default search UI changed in the latest version of firefox. When I changed the default search in the search bar, the search from the address bar also changed.

For instance, this... Firefox - change default search engine

Results in this... Firefox - search from Awesome Bar

However if you want to choose which engine to use each time, then you should go with the solution from @harrymc

I hope this helps.

Search bar

3
Dave

The option of Keyword.Url, as of FF23, has been removed.

The address bar (1) and the search bar (2) share the same settings. So, if the search bar is set to Yahoo, then so it will be when you search (see screen below)

enter image description here

To add a new provider to the list which affects both the 'awesome bar' (now called location bar I think) and the search bar, choose the engine from the search box drop down arrow (beside the Purple Y for Yahoo! (near to the number 2))

However, as it currently stands, it looks like the Keyword.Url parameter has been removed. There is nothing which replaces it (in the same area).

I found a plugin https://addons.mozilla.org/en-US/firefox/addon/keywordurl-hack/ (instruction on setting up

and

https://addons.mozilla.org/en-US/firefox/addon/keyword-search/

This is speculation but I believe this functionality was removed to prevent search hijacking.

There is also additional search options with the latest Firefox, if you right click in any (most/some) search boxes, even the one at the top of this SU page, you can "Add keyword to this site". This will then let you choose the search engine from the 'location bar' (pictured as 1) and add your search phrase by typing in the bookmark name you gave.

And here is the reasons fully behind the decision https://bugzilla.mozilla.org/show_bug.cgi?id=873734

1
harrymc

In Firefox 34 the search UI has been changed, but one can still use keyword search in the address bar, even though the "Edit Keyword" option has disappeared from the "Manage Search Engine List" dialog.

One can, for example, open up http://www.bing.com/ and right-click the search-field to get :

enter image description here

Choose "Add a Keyword for this Search...", which will get this dialog :

enter image description here

Enter "bing" as the keyword. Now you can write in the address bar :

enter image description here

And get this :

enter image description here

For Google, one can use the same mechanism and maybe define the search keyword as "g" for brevity.

If you wish to delete such a keyword, this can be done from the Bookmarks menu.

1
CyberJacob

I have confirmed this works on FireFox 34.0.5 on OS X. This is the latest stable release at the time of posting this answer.

In the default menu layout, there is a search box to the right of the address bar. On the left side of this search bar, is the logo of the current default search engine. To choose a new default search engine, click the logo, then select a new default search engine from the drop-down menu. The default search provider is then used for all searches made from the address bar.

New search engines can be added from the Mozilla Addons site, By clicking the 'Add "[Site Name]"' option in the menu (compatible sites only), and by using the method described in @harrymc's answer.