Skip to content

Instantly share code, notes, and snippets.

@netwjx
Last active December 17, 2015 01:49
Show Gist options
  • Save netwjx/5531617 to your computer and use it in GitHub Desktop.
Save netwjx/5531617 to your computer and use it in GitHub Desktop.
use google better in china

in firefox

url: about:config, search keyword :

keyword.URL
https://www.google.com.hk/search?safe=strict&hl=zh-CN&site=webhp&source=hp&q=

in linux

searchplugins folders:

- `/usr/share/firefox/searchplugins`
- `/usr/lib/firefox/distribution/searchplugins`
- `~/.mozilla/firefox/{user profile id}.default/searchplugins`

examples:

> ls -1 /usr/lib/firefox/distribution/searchplugins/locale/zh-CN/
amazondotcn.xml*
baidu.xml*
baiduzhidao.xml
bing.xml
creativecommons.xml
duckduckgo.xml
eachnet.xml
google.xml
paipai.xml
wikipedia-zh-CN.xml

google.xml example:

<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/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUUlEQVR42pWTzUsCYRCH9y9zu3SooCCkjhIRRLeIykXokiWCJ7PvDpZRlz6si1lIQZ3SQxQdOhREpgSm0JeQvfu0+i6I7LKLh4F5h5nnnRl+o6jTdHn8omAYbVqhXqvYFXcEBKFDwcoZZB8B4LkEB9cwGGmFKHb01A1EU9JXzfdvDYZi1lwLwBcVAIwsNWPesIwls7gDtB2Z7N9ujVe+IX2LO2AgItB1OL9vJqsmILDrOoK02IkBAdYy4FsQJC5h+VQCHQDWTqYSgo8fuHuRxS4Ae3stQ7UGE5ttAHqCUgfxC7m4ryrowOyeO6CxqHwZxtYFqtYc5+kNan/gDTsAeueEIRj7n/rmRQMwueUAGF0VAAT3rQBTC0Y3DoDOGbm00icML4oWHYSTgo0MFqjlmPpDgqMcFCuQf4erBzjOwXjcriu9qHg0uutO2+es6fl67T9ptebvFRjBVgAAAABJRU5ErkJggg==</Image>
<Url type="application/x-suggestions+json" method="GET" template="https://www.google.com.hk/complete/search?client=firefox&amp;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/</SearchForm>
</SearchPlugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment