smblott-github / chromix-too

External access to Chrome's internal Javascript API.
https://www.npmjs.com/package/chromix-too
105 stars 10 forks source link

Ability to send raw commands to other extensions? #4

Open rturmel opened 8 years ago

rturmel commented 8 years ago

Hi, I started using chromix-too two weeks ago and it is brilliant. I am able to manage our 5 monitoring screens from the command line and it is working like a charm!

There is one thing I am unable to do so far: I want to toggle on/off the Tab Carousel extension that cycles through our opened tabs. The 5 monitoring screens cycles automatically through pre-configured tabs but when we want to debug something I'd like to pause the cycling through chromix-too.

I contacted the Tab Carousel author and he suggested to use carousel.click or carousel.start methods but I am unable to address the extension via chromix-too.

Can you point me in the right direction? Does chromix-too required additional functionality to be able to do this?

Thank you

Richard Turmel

smblott-github commented 8 years ago

chromix-too runs only on the background page, at the moment.

It wouldn't take too much plumbing to get commands to the content pages too. Basically, you'd use the same technique to encode operations as is used currently between outside of Chrome and inside.

I might have a look, when I get a chance.

Or, a PR would be welcome. In fact, with a little refactoring, it should be possible to use the same command handler in both contexts.

The extension part of chromix-too is less than 50 LoC. It's no beast! Have a look.