Open Safari / Google Chrome developer tools programmatically from JavaScript

前端 未结 5 1155
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 19:16

I\'m looking for a way to open the WebKit “developer tools” from a script attached to a web-page. I need solutions for both Google Chrome and Safari, that will open the deve

5条回答
  •  悲哀的现实
    2020-11-27 19:43

    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 :-)

提交回复
热议问题