It seems unlikely that this is possible or will ever become possible,
check this:
https://code.google.com/p/chromium/issues/detail?id=112277
which says:
“We only allow explicit devtools opening.”
More Related Contents:
- After calling chrome.tabs.query, the results are not available
- Google Chromecast sender error if Chromecast extension is not installed or using incognito
- Why will jQuery not load in Facebook?
- Link to chrome:// url from a webpage
- Persistent Service Worker in Chrome Extension
- Pass a parameter to a content script injected using chrome.tabs.executeScript()
- Returning Chrome storage API value without function
- How to use jQuery in chrome extension?
- Communicate between scripts in the background context (background script, browser action, page action, options page, etc.)
- Chrome extension: How to save a file on disk
- Injecting javascript variable before content script
- How to communicate between popup.js and background.js in chrome extension?
- How can I get selected text in pdf in Javascript?
- saving and retrieving from chrome.storage.sync
- How to fetch URL of current Tab in my chrome extension using javascript
- String compression in JavaScript
- Why is chrome.browserAction.onClicked undefined?
- Can the window object be modified from a Chrome extension? [duplicate]
- I’m getting an error “Tabs cannot be edited right now (user may be dragging a tab)” on tab update/activate/focus event in chrome 91
- How to make side panel in chrome extension?
- google chrome extension :: console.log() from background page?
- the proper use of execcommand(“paste”) in a chrome extension
- chrome.storage.local.set using a variable key name
- Can I prevent an alert() with a Google Chrome Extension
- Devtools doesn’t show console or requests for extension popup? [duplicate]
- Prevent window.open from focusing
- Associate a custom user agent to a specific Google Chrome page/tab
- Chrome extension message passing not working (background.js to content.js)
- Published extension doesn’t work with chrome API listeners inside onInstalled
- Chrome developer tools do not show all JavaScript files any more