I am developing a chrome extension.
I found the fact that we have to click on the “icon” to generate a browser action tedious.
Is there a way for us to call a function ( using javascript ) that could generate a browser action so that we do not need to click anymore?
It’s not possible, chrome doesn’t give the way to do that.
Because popup is for user interaction.
a popup cannot open by any action but clicking on it manually.
If you want to open as a popup, you have to open that popup as a new tab with:
chrome.tabs.create({url: chrome.extension.getURL('popup.html')})Which will run the exact same way as the popup but not within a popup.