How to access bookmarks page and other chrome urls in an extension?

前端 未结 1 1162
粉色の甜心
粉色の甜心 2021-01-14 07:32

I\'m developing an extension which replaces the new tab page with a set of other features.

I have a link on the new \"new tab\" page. And I\'ve set the value of its

相关标签:
1条回答
  • 2021-01-14 08:10

    You should be able to open chrome://bookmarks/ programmatically.

    Make an click handler that triggers chrome.tabs.create({url: "chrome://bookmarks/"}) - I just checked and it works from a background page.

    If you need to replace your current tab, use chrome.tabs.update.

    0 讨论(0)
提交回复
热议问题