bredonosec
Platinum Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору New solution (since the previous one does not work anymore): Now if you visit a website like Twitter, Firefox will let you add the Twitter search easily (https://support.mozilla.org/en-US/kb/add-or-remove-search-engine-firefox). But in case you want to add another website that is not supported, you will need a web server like Apache. Below would be the solution for Twitter in case they don't use the search engine file opensearch.xml anymore. Create a file, for example twitter_search.htm (this HTML source code is used on twitter.com, I just removed the / before opensearch.xml): <link rel="search" type="application/opensearchdescription+xml" href="opensearch.xml" title="Twitter"> Then create another file, with the same name used in the href parameter of the previous HTML code, for example opensearch.xml with this content (this XML source code is used at https://twitter.com/opensearch.xml): <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <ShortName>Twitter</ShortName> <Description>Twitter Search</Description> <Url type="text/html" method="get" template="https://twitter.com/search?q={searchTerms}"/> <Image width="16" height="16">https://abs.twimg.com/favicons/favicon.ico</Image> <InputEncoding>UTF-8</InputEncoding> <moz:SearchForm>https://twitter.com/search-home</moz:SearchForm> </OpenSearchDescription> If needed, customize these files to replace the search URL, search form URL, name, description and icon. Put these 2 files in a folder of your web server and open the HTML file that you can find by visiting http://localhost in your web browser. You will be able to add your custom search engine to Firefox. |