单击chrome扩展按钮时打开网站

时间:2015-11-20 12:51:28

标签: google-chrome-extension

单击扩展按钮而不是打开弹出窗口时,是否可以在当前选项卡中打开网站?

这是我已经尝试过的:

{
  "manifest_version": 2,

  "name": "Getting started example",
  "description": "This extension shows a Google Image search result for the current page",
  "version": "1.0",

  "browser_action": {
    "default_icon": "icon.png",
    "default_url": "http.//site.com/"
  },
  "permissions": [
    "activeTab",
    "https://ajax.googleapis.com/"
  ]
}

0 个答案:

没有答案