bard / mozrepl

Remotely control Firefox and other Mozilla apps with JavaScript
https://github.com/bard/mozrepl/wiki/
511 stars 64 forks source link

Firebug is the active context #45

Closed lordi closed 9 years ago

lordi commented 11 years ago

Hi,

when I opened Firebug as a separate window and connect to the repl, Firebug will be the active context. How can I skip the Firebug context?

repl> repl.whereAmI();
[object ChromeWindow] - Document title: "Firebug - inaktiv für die aktuelle Webseite"
rpl commented 9 years ago

@lordi you can restrict the context selected by mozrepl with the "-repl-context WINDOWTYPE" command line option, e.g. the follows command line start mozrepl and restrict the selected context to Firefox browser windows:

firefox -repl-context navigator:browser