Simply: You can’t.
The Dev Tools are not sandboxed (unlike any web page), thus granting sandboxed environments the power to open and control an unsandboxed environment is a major security design flaw.
I hope this answers your question 🙂
More Related Contents:
- Get the real width and height of an image with JavaScript? (in Safari/Chrome)
- Video auto play is not working in Safari and Chrome desktop browser
- Is it possible to display a custom message in the beforeunload popup?
- Firing a Keyboard Event in Safari, using JavaScript
- How does the paste image from clipboard functionality work in Gmail and Google Chrome 12+?
- JavaScript: Is there a way to get Chrome to break on all errors?
- Unexpected token ILLEGAL in webkit
- Date parsing in javascript is different between safari and chrome
- Firing a keyboard event on Chrome
- Return HTML from a user-selected text
- Prevent Address-Bar hiding in mobile Browsers
- javascript large integer round because precision? (why?)
- programmatically changing webkit-transformation values in animation rules
- webkit-transform overwrites z-index ordering in Chrome 13
- How can I log an HTML element as a JavaScript object?
- Total canvas memory use exceeds the maximum limit (Safari 12)
- Javascript / Chrome – How to copy an object from the webkit inspector as code
- Silence net::ERR_CONNECTION_REFUSED
- Chrome and Safari XSLT using JavaScript
- Synchronous console logging in Chrome
- “Unsafe JavaScript attempt to access frame with URL…” error being continuously generated in Chrome webkit inspector
- Is Chrome’s JavaScript console lazy about evaluating objects?
- How do I auto-reload a Chrome extension I’m developing?
- Editing in the Chrome debugger
- JavaScript – window.scroll({ behavior: ‘smooth’ }) not working in Safari
- Getting Chrome to prompt to save password when using AJAX to login
- Chrome javascript debugger breakpoints don’t do anything?
- Is it possible for XHR HEAD requests to not follow redirects (301 302)
- How to get the currently opened tab’s URL in my page action popup?
- Using ‘let’ as a variable name is not throwing any errors in google v8