Hooking into the chrome emulation tools from an extension

Friday, July 4, 2014

I am working on a small chrome extension that will emulate different devices - namely an iPhone & iPad.

I know this can be done using chromes developer tools using the emulation options.

However we are sending this out to client who may not be tech savy or comfortable working in developer tools. So a one click extension to set it all up is our goal.

I have been able to spoof the user agent but am stuck on the screen emulation.

Is there any way i can hook into the developer tools and call chromes inbuilt functionality or any Js I can call to emulate a screen in the browser?