Yep, Chrome is easier to add custom search engines, but you can do the same on Firefox. See:
https://developer.mozilla.org/en-US/...ns_for_Firefox
For example, the default Wikipedia search plugin (defaults are located in "/usr/lib/firefox/browser/searchplugins/") looks like this:
Code:
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Wikipedia (en)</ShortName>
<Description>Wikipedia, the Free Encyclopedia</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,[--redacted because it is way too long and pointless too--]</Image>
<Image width="130" height="52">data:image/png;base64,[--redacted because it is way too long and pointless too--]</Image>
<Url type="application/x-suggestions+json" method="GET" template="https://en.wikipedia.org/w/api.php">
<Param name="action" value="opensearch"/>
<Param name="search" value="{searchTerms}"/>
</Url>
<Url type="text/html" method="GET" template="https://en.wikipedia.org/wiki/Special:Search"
resultdomain="wikipedia.org" rel="searchform">
<Param name="search" value="{searchTerms}"/>
<Param name="sourceid" value="Mozilla-search"/>
</Url>
</SearchPlugin>
Google:
Code:
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Google</ShortName>
<Description>Google Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,[--redacted because it is way too long and pointless too--]</Image>
<Image width="65" height="26">data:image/png;base64,[--redacted because it is way too long and pointless too--]</Image>
<Image width="130" height="52">data:image/png;base64,[--redacted because it is way too long and pointless too--]</Image>
<Url type="application/x-suggestions+json" method="GET" template="https://www.google.com/complete/search?client=firefox&q={searchTerms}"/>
<Url type="text/html" method="GET" template="https://www.google.com/search" rel="searchform">
<Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/>
<Param name="oe" value="utf-8"/>
</Url>
</SearchPlugin>