1、在地址栏中输入about:config进入高级设置
2、搜索keyword.URL,编辑值为:https://www.google.com.hk/search?client ... e=utf-8&q=
或者其他的你想要的搜索引擎
firefox搜索工具栏搜索引擎URL设置
1、找到firefox工具栏搜索引擎配置文件,例如:ubuntu /usr/lib/firefox/distribution/searchplugins/locale/zh-CN/google.xml
2、zh-CN为你的firefox语言环境,如英语en-US
3、把这个文件中的url设置都改为https
如:
代码: 全选
<Url type="application/x-suggestions+json" method="GET" template="http://www.google.com/complete/search?client=firefox&q={searchTerms}"/>
<Url type="text/html" method="GET" template="http://www.google.com/search">
<Param name="client" value="ubuntu"/>
<Param name="channel" value="fs"/>
<Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/>
<Param name="oe" value="utf-8"/>
</Url>
<SearchForm>http://www.google.com/</SearchForm>
</SearchPlugin>
改为:
代码: 全选
<Url type="application/x-suggestions+json" method="GET" template="https://www.google.com.hk/complete/search?client=firefox&q={searchTerms}"/>
<Url type="text/html" method="GET" template="https://www.google.com.hk/search">
<Param name="client" value="ubuntu"/>
<Param name="channel" value="fs"/>
<Param name="q" value="{searchTerms}"/>
<Param name="ie" value="utf-8"/>
<Param name="oe" value="utf-8"/>
</Url>
<SearchForm>https://www.google.com.hk/</SearchForm>
</SearchPlugin>
5、如果还不行,可以重启一下电脑试试
补充:
6、如果还有问题,可以尝试需要修改firefox的用户配置
$cd ~/.mozilla/firefox
$mv zy15nnh7.default/search.json zy15nnh7.default/search.json-bak
zy15nnh7.default 为我的配置文件目录,请更换为自己的目录。
7、我一直用goagent,但这几天,goagent连http://www.google.com都不行了。下面是goagent的日志
代码: 全选
WARNING - [Nov 02 16:03:55] http.request "GET http://www.google.com/search?client=ubuntu&channel=fs&q=%E6%88%91%E7%9A%84&ie=utf-8&oe=utf-8") return None
代码: 全选
INFO - [Nov 02 16:04:23] 127.0.0.1:49514 "CONNECT www.google.com.hk:443 HTTP/1.1" - -