Open Safari / Google Chrome developer tools programmatically from JavaScript

前端 未结 5 1149
隐瞒了意图╮
隐瞒了意图╮ 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:49

    No, Any secure Browser will not allow a script to open an extension, as it leads to insecurity.

    But, You may design an Add-On/extension OR Console API's to do the same.. for specific site.

    Create an Add-On like this to achieve that requirement.

    You can try sending keys 'CTRL' + SHIFT' + 'I' that may work for Chrome any FireFox (in I.E you need to use 'F12'

    I am using it when required as few utils in this add-on use to work better then the built-in.

    EDIT: Now a days Chrome is advanced with many new advancements source.

    I hope this helps!

提交回复
热议问题