Giter Site home page Giter Site logo

ff-remote-control's Introduction

Welcome to the Remote Control Firefox Extension.

It allows you to remote control a particular Firefox window with a TCP connection (such as telnet or netcat).

Something like this:

base@peter:~> telnet localhost 32000
window.location="http:/www.google.com/"
{"result":"http:/www.google.com/"}

You send any Javascript commands to firefox in a single line, and it sends either a result or an error back JSON-encoded. As a convenience, a command of reload is taken to be a shortcut for window.location.reload()

Using netcat/nc, you can therefore:

echo reload | nc -q 1 localhost 32000

and the page will reload.

Getting Started

  • Download and install the extension
  • Select a Firefox window or tab you want to remote control
  • Click the Remote Control toolbar button
    • If firebug is installed and active in that window, you can see logging in the Firebug console. (Firebug is not required, but the firebug console will be used if installed and active)
  • Use telnet, nc or any other tool to send javascript commands to your Remote Controlled Firefox.

Preferences and Controlling Behavior

There are preferences for:

  • Whether to listen for connections from localhost only (default = localhost only).
  • Which TCP port number to listen on (default=32000)
  • Whether to send remote commands to currently active tab (default=false)

In addition, by default when firefox is initially started, Remote Control is not active. You have to select a window/tab and start Remote Control by clicking the toolbar button.

But it is possible to start Remote Control automatically when Firefox starts by setting the environment FIREFOX_\START_REMOTE_CONTROL=1. If that environment variable is set and the icon is present on the toolbar, it will start when Firefox starts. The requirement for the icon to be present is to avoid this extension being used for malicious purposes without the user knowing.

Issues

Please report any problems to the Issue tracker

ff-remote-control's People

Contributors

pmorch avatar rundef avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.