Starting with Version 17 (Developer Preview) Opera includes a Search-Engine Manager, which allows the user to add his own search engines. But the default search engines included with Opera cannot be edited in this way! To edit them use the first part of this answer, Versions 15-16 can also use the second part:
Disabling the default Search Providers (because they take up many keywords I would rather use for other searches - I just left Google with the classical 'g')
To do so, you have to edit the default_partner_content.json which is usually found in C:\Program Files\Opera\resources\
You can edit it by hand, or just replace it's content with the following:
{
"search_engines": {
"location": {
"other": {
"other": {
"list": [
"google_com"
],
"speed_dial_index": 0
}
}
}
},
"search_engines_flat": {
"google_com": {
"name": "Google Search",
"keyword": "g",
"favicon_url": "http://www.google.com/favicon.ico",
"search_url": "https://www.google.com/search?client=opera&q={searchTerms}&sourceid=opera&ie={inputEncoding}&oe={outputEncoding}",
"suggest_url": "http://www.google.com/complete/search?client=opera&q={searchTerms}&ie={inputEncoding}&oe={outputEncoding}",
"post": false,
"encoding": "UTF-8",
"uuid": "FF57F01A-0718-44B7-8A1F-8B15BC33A50B",
"css_resource": "css/searchstyle_google.css"
},
},
"speed_dials": {
},
"speed_dial_folders": {
},
"speed_dials_flat": {
}
}
Embedding your custom Search Engines in the Web Data File (usually found in C:\Users\#username#\AppData\Roaming\Opera Software\Opera\ You can edit the SQLite3 format which is shared by Opera in 2 easy ways: Either install Chrome, create your custom searches and copy the Web Data File over to Opera.
Or edit the File using a free SQLite-Editor like http://sourceforge.net/projects/sqlitedbrowser/
(You should copy the Web-Data File to your home-folder, so you have full write-access, or opening the file may fail) There you can enter your own search-engines into the keywords table - most of the fields should be self-explaining...
This is off-topic, but thanks for the anonymous search engine DuckDuckGo.
You can use this opensearch Mycroft Project.
It has everything already created just enter the values into textbox and and you have the XML code.
You can also submit your website search engine here.
OR
Here are the steps:
Need to create an XML file which will contain information about search engine like ShortName, Description, URL etc. Example of XML file here
Give a name to that XML file and put it here:
%APPDATA%\Mozilla\Firefox\Profiles\XXXXXXXX.default\searchplugins
or here:
%PROGRAM_FILES%\Mozilla Firefox\searchplugins
- Modifying FireFox preferences file:
%APPDATA%\Mozilla\Firefox\Profiles\XXXXXXXX.default\prefs.js
Simply add/modify this line:
user_pref("browser.search.selectedEngine", "engine_name");
No needing to modify SQLite database file manually. New search engine will be added automatically after restarting FireFox.
Source
Best Answer
You can find the Search Providers in your Firefox Profile (search.json)
C:\Users\user\AppData\Roaming\Mozilla\Firefox\Profiles\profile\search.json
Replace user and profile with your profile names.