switch-searcher

A Search engine switcher toggles between Baidu and Google without re-enter the keywords. 一个搜索引擎切换器可以方便的在百度和谷歌之间切换,不需要重新输入关键词。
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "description": "A Search engine switcher toggles between Baidu and Google without re-enter the keywords.",
  "manifest_version": 2,
  "name": "switch-searcher",
  "version": "1.2resigned1",
  "homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/open-my-page-button",
  "content_scripts": [
    {
      "matches": [
        "*://www.google.com/*",
        "*://www.google.com.hk/*"
      ],
      "js": [
        "hook_google.js"
      ]
    },
    {
      "matches": [
        "*://www.baidu.com/*"
      ],
      "js": [
        "hook_baidu.js"
      ]
    }
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "{c0abcf62-0d82-4703-802b-0c31d1d625cd}"
    }
  }
}