4

Is it possible to open the client's web console in javascript (CTRL+SHIFT+K on Firefox)? Define the size, the position, else?

Thank you

grrr
  • 151
  • 11
  • 1
    You just said that you only have to press Ctrl+Shift+K, so it appears to be possible indeed? – Bergi Jan 08 '18 at 17:21
  • 2
    @Bergi simulating those keypresses through JavaScript won't open the client's console, though – Jonah Jan 08 '18 at 17:26
  • 2
    I honestly hope not. I wouldn't want a malicious site to be able to force my dev tools open or try to trick my mother into thinking that all those console error messages mean that she has a virus and that she needs to provide her CC details right now. – zero298 Jan 08 '18 at 17:31

1 Answers1

1

I haven't heard of this being possible, and I couldn't find anything in a recent search about how to do it either. I did find another stackoverflow conversation about something similar here: Can I programmatically open the devtools from a Google Chrome extension?

From that, I surmise that if it's not possible from a browser extension, it seems even less likely to be possible from plain JavaScript.

Van Boughner
  • 324
  • 2
  • 8