首页 > 代码库 > 找回google

找回google

该死的兔子又把google干掉了,对于习惯用google搜东西的人来说简直痛苦,而且这次不单是google,连gae也一起中招.还好有大神提供解决方案,使用http://173.194.54.226/但是问题又来了,我习惯用FF的搜索栏进行搜索,每次要开一个新标签页,在输个地址简直不效率呀!

那就让我们来自定义一个搜索栏的搜索!

首先,找到你FF的安装目录,比如我的是在C:\Program Files (x86)\Mozilla Firefox\,然后进行C:\Program Files (x86)\Mozilla Firefox\browser\searchplugins这个路径,里面有很多xml文件,一个xml文件就是一个搜索引擎.找到google.xml,打开它,复制下面的代码进去保存

<!-- 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,AAABAAIAEBAAAAAAAAB9AQAAJgAAACAgAAAAAAAA8gIAAKMBAACJUE5HDQoaCgAAAA1JSERSAAAAEAAAABAIBgAAAB/z/2EAAAFESURBVDjLpZNJSwNBEIXnt4lE4kHxovgT9BDwJHqPy0HEEOJBiAuCRg+KUdC4QS4KrpC4gCBGE3NQ48JsnZ6eZ3UOM6gjaePhQU93v6+qq2q0pqgeJj2S8EdJT1hr0OxBtKCD5iEd8QxDYpvhvOBAuMDKURX9C9aPu4GA1GEVkzvMg10UBfYveWAWgYAP00V01fa+R9M2bA51wJvhIn3qR+ybt3D3JNQBE5sMjCIOLFpoHzOwdsLRO22qA6R6kiZiWwxUvy/PUQZIhYZ1vFM9cvcOOsYNdcBgysISdSJBnZjJMlR0Fw8vAp0xoz5gao/h+NZBy4i/10XGwrPA+hmvDyhVRG2Avu/LwcrkFADZa16L1h330w1RNgc3DiJzCpPYRm1bpveXX11clQR28xwblHpk1vq1iP/5mcoS0CoXDZiL0vsJ+dzfl+3T/VYAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAIAAAACAIBgAAAHN6evQAAAK5SURBVFjDxVfrSxRRFJ9/Jta/oyWjF5XQm6D6EkHRgygIIgjUTcueVgqVWSRRkppEUQYWWB8ye1iGWilWlo/Ude489s7M6Zw7D9dlt53dmd29cFiWvXvO77x+51xpaaUsoSxBaUWZQ4ECy5xji2xKZDyCMlMEw6lCNiOSgwZKJK1SkcKeSealfP64t0mBjl4Ow39MkDUL0p2RSROOtqhZdeUEYM1pBl39XCg/fEeFtWcY7G9W4csvUxjlBkCsQ4Nt9QyWVfvT6RsAKXw3aoDGATZeYIt+W1kjw7cJG0RctWDTRebbKd8A6h5pwsDb70ba3w/eUr3wt/cmwgfw6Yft4TNMQaY7o1P2ncm4FT4ANQH/jQBJ2xv7kqIXEADDql8eS3+n8bku7oxNm+EDIM/dU92upb3T/NJGeaNbDx/AsbsLRUY5Xn92caWXY5d8RV6gWllxSg4fAEnTC90DQW13BLlgXR2D3dcUeDVkwOthA1bXspxILWcm3HdThcfvufB26LcJpkOEAz9NKI/lzqpSEC7feol5EWnpSeSlIxCALUkApmULdjUqxQVAQnl3D/X/yQda4QBEq2TYc12By091MQ17Bg3R88nHKlQbVmHvj89awNBLYrwT9zXY2aBAxTkGFdiSxP/Jp6FLDw+AS7GfsdJTJ2EqSO5khD43nGfBARy/ZxOQgZHe7GPM1jzUvChUtmnBAXQPcKGMJp3fdFGq6NByEhiAO4b/YptFfQJwNyQ/bZkVQGcf90Ja25ndIyrKBOa/f8wIpwi3X1G8UcxNu7ozUS7tiH0jBswwS3RIaF1w6LYKU/ML2+8sGnjygQswtKrVIy/Qd9qQP6LnO64q4fPAKpxyZIymHo1jWk6p1ag2BsdNwQMHcC+M5kHFJX+YlPxpVlbCx2mZ5DzPI04k4kUwHHdskU3pH76iftG8yWlkAAAAAElFTkSuQmCC</Image><Url type="application/x-suggestions+json" method="GET" template="http://173.194.72.31/search?client=firefox&amp;q={searchTerms}"/><Url type="text/html" method="GET" template="http://173.194.72.31/search">  <Param name="q" value="{searchTerms}"/>  <Param name="ie" value="utf-8"/>  <Param name="oe" value="utf-8"/>  <Param name="aq" value="t"/>  <Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>  <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>  <MozParam name="channel" condition="purpose" purpose="contextmenu" value="rcs"/>  <MozParam name="channel" condition="purpose" purpose="keyword" value="fflb"/>  <MozParam name="channel" condition="purpose" purpose="searchbar" value="sb"/>  <MozParam name="channel" condition="purpose" purpose="homepage" value="np"/>  <MozParam name="source" condition="purpose" purpose="homepage" value="hp"/></Url><SearchForm>http://173.194.72.31/</SearchForm></SearchPlugin>

其实就是把里面的www.google.com换成了IP,重启你的FF,享受使用google search的快感吧!