I know we cannot open chrome extension popup directly from background javascript. But is there a way that the popup opens when a user presses some key combination ?
The chrome.commands api enables the user to bind hotkeys that will trigger commands such as opening the browser action.
Example : https://developer.chrome.com/extensions/samples#search:commands (Press Ctrl+Shift+F (Command+Shift+F on a Mac) to open the browser action popup, press Ctrl+Shift+Y to send an event (Command+Shift+Y on a Mac))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With