Opening a Chrome extension as a pop-up using a link

前端 未结 2 977
悲哀的现实
悲哀的现实 2021-01-29 05:08

I have a chrome extension installed in my browser. When I click the extension\'s icon in the menu bar the extension opens as a floating pop-up, as expected.

What I am t

相关标签:
2条回答
  • 2021-01-29 05:11

    you cant make the native extension popup to show programatically but you could use a content script that displays the popup (using the new for example) on the tab that you want.

    0 讨论(0)
  • 2021-01-29 05:14

    Sadly, it's completely impossible.

    There is an API in the works, but it would require at a minimum a user gesture, at a maximum explicit invocation of the extension.

    So opening a link would not be enough, nor would a Native Message be.

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