Socket
Socket
Sign inDemoInstall

fireprox

Package Overview
Dependencies
20
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fireprox

A simple proxy for MozRepl over HTTP GET using express/node.js to control Firefox


Version published
Maintainers
1
Install size
2.18 MB
Created

Readme

Source

fireprox

A simple proxy for MozRepl over HTTP-GET using express/node.js to control Firefox:

browser or client <--HTTP-GET--> fireprox <----> MozRepl + Firefox

I threw this together because I needed an easy way to programatically read the current url from a remote Firefox into my javascript web application but was unable to workaround browser security restrictions or get Firefox WebDriver to work reliably.

install and run

$ npm install -g fireprox     # might need to prefix with sudo
$ fireprox

options

$ fireprox --help
Usage: fireprox [options]

Options:

  -h, --help                 output usage information
  -V, --version              output the version number
  -p, --port [port]          fireprox listening port (default:8080)
  -m, --mozrepl-host [host]  mozrepl hostname or ip-address (default:localhost)
  -q, --mozrepl-port [port]  mozrepl port (default:4242)

usage

Navigate to http://server:8080 where server is the node.js server running fireprox. You should see Fireprox says hello!.

Now navigate to http://server:8080/COMMAND where COMMAND is any MozRepl command.

examples

To get the firefox current url browse to http://server:8080/content.location.href

To navigate firefox to http://bar browse to http://server:8080/content.location.href='http:%2f%2fbar' (notice the escaped //)

To show foo in an alert box browse to http://server:8080/alert('foo') (you'll need to manually close this alert before fireprox returns).

build and run locally

$ npm install -g livescript   # ensure livescript is installed globally
$ git clone git@github.com:dizzib/fireprox.git
$ cd fireprox
$ ./task/bootstrap            # compile the task runner and install dependencies
$ node _build/task/repl       # launch the task runner
fireprox > b.c                # build compile

$ ./_build/site/bin/fireprox  # run it!

credits

Inspired by codediesel.

license

MIT

Keywords

FAQs

Last updated on 16 Mar 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc