No baidu search is found in the default firefox search bar. After some research, the method for adding baidu is found.
1. In the/usr/lib/firefox/searchplugins directory of firefox, refer to the existing google. xml and bing. xml in www.2cto.com. I wrote the following xml file:
<SearchPlugin xmlns = "http://www.mozilla.org/2006/browser/search/">
<ShortName> Baidu </ShortName>
<Description> Baidu Search </Description>
<InputEncoding> UTF-8 </InputEncoding>
<Image width = "16" height = "16" type = "image/x-icon"> data: image/x-icon; base64, lost/wD/AAAA/wD/AP // AAD // 8 bytes // M/4zMd8zI/8z/zMzMzMz/zP/MzMzMzP/M /4 zMzMzI/8z/+ MzMzI // zPjIjMzIjI/M/Mz4zI/Jun // 4 yPzPjIjI + Mj // M // Mz8zP/8z/8 zPzM/zP // jI/4 // M /////// 8 bytes </Image>
<Url type = "text/html" method = "GET" template = "http://www.baidu.com/s">
<Param name = "ie" value = "UTF-8"/>
<Param name = "wd" value = "{searchTerms}"/>
</Url>
Http://www.baidu.com/</SearchForm>
</SearchPlugin>
Save the above Code as baidu. xml and put it in the/usr/lib/firefox/searchplugins directory. Restart firefox.
2. About Image
Search for the file data of the small icon in the Image Tag. Use the following method to obtain the data:
Wget http://www.baidu.com/favicon.ico
Base64-w 0 favicon. ico
From the bbplayers Column