新标签上的Chrome扩展程序

时间:2017-10-27 00:42:51

标签: google-chrome google-chrome-extension

是否可以在新标签页上打开Chrome扩展程序?我希望能够创建一个与书签管理器具有相同方法的chrome浏览器。见下面的图1.0

enter image description here

我希望我的应用程序喜欢/拥有一个地址

chrome://personalize_calendar_stuff

可能吗?我找不到清单上的参考资料。

1 个答案:

答案 0 :(得分:0)

感谢@wOxxOm给了我一个主意。

我在 index.js

上添加了此脚本
chrome.browserAction.onClicked.addListener(function(){
  chrome.tabs.create({url: "main.html"});
})

以下是我使用的清单文件的示例。

{
  "name" : "Testing Chrome",
   "version": "1.0",

   "background":
   {
         "scripts": ["index.js"]
   },
   "description": "A testing example app",
   "permissions":[
      "tabs",
   ],
      "content_security_policy": "script-src 'self'; object-src 'self'",

    "browser_action": {
"default_title": "testing chtome",
"default_icon": "icon.png"
   },
   "manifest_version": 2
  }
相关问题